First question:
[Email protected]:/usr/local/mysql/bin#./mysqld_safe start (start the MySQL service!) )
151123 14:19:04 mysqld_safe Logging to '/usr/local/mysql/data/b-thinkpad-x230s.err '.
151123 14:19:04 Mysqld_safe starting mysqld daemon with databases From/usr/local/mysql/data
151123 14:19:05 mysqld_safe mysqld from PID File/usr/local/mysql/data/b-thinkpad-x230s.pid ended
[Email protected]:/usr/local/mysql/bin#./mysql--user=mysql (login with MySQL user)
Error 2002 (HY000): Can ' t connect to local MySQL server through socket '/tmp/mysql.sock ' (2) (Error!) )
Think it's the user's problem, and then try a different user name:
[Email protected]:/usr/local/mysql/bin#./mysql-u root (log in with the root user)
Error 2002 (HY000): Can ' t connect to local MySQL server through socket '/tmp/mysql.sock ' (2) (Error!) )
Then think about whether there is no user to set the password problem, because it seems that no password can be logged in, first try to set the password:
[email protected]:/usr/local/mysql/bin#./mysqladmin-u mysql password "123456"
./mysqladmin:connect to server at ' localhost ' failed
Error: ' Can ' t connect to local MySQL server through socket '/tmp/mysql.sock ' (2) '
Check that Mysqld was running and that the socket: '/tmp/mysql.sock ' exists!
To see if the service has started:
[Email protected]:/tmp# ps-aux | grep "MySQL"
Root 4518 0.0 0.0 13708 2296 PTS/11 s+ 14:35 0:00 grep--color=auto MySQL
Current problems with installing and starting MySQL: