Install mysql error /etc/init.d/mysqld the open service: line 264: solution

Install mysql
the open service, the error
/etc/init.d/mysqld: line 264: cd: mysql -5.5.60: No such file or directory
solutions
https://blog.51cto.com/genxin/1783419

basedir set up correctly, appeared, error
[root @ localhost ~] # Service mysqld Start
Starting MySQL.Logging to '/usr/local/mysql-5.5.60/localhost.localdomain.err'.
190 608 21:24:11 mysqld_safe Directory '/ var / lib / MySQL' File for UNIX socket do not EXISTS.
ERROR! at The PID File Server quit the without Updating (/usr/local/mysql-5.5.60/localhost.localdomain.pid).

Solution
https://blog.csdn.net/weixin_41503704/article/details/82994661

There is a problem, I began to set my.cnf
second error solution, to remove my.cnf, normal start,

????

[root@localhost ~]# service mysqld start Starting MySQL SUCCESS!

PS: hindsight
first error, suggesting no installation directory
by querying the need to change /etc/init.d/mysqld file parameters basedir = / usr / local / mysql -5.5.60
situation remains the same, after repeated attempts found /etc/my.cnf there basedir = mysql-5.5.60 arguments, but did not write the actual path, naturally wrong
time to start mysql start MySQL service principle, priority will be to find my.cnf in / etc / directory
This explanation, no matter how I check /etc/init.d/mysqld in the path, the situation is still cause

Guess you like

Origin blog.51cto.com/4690837/2406384