Current problems with installing and starting MySQL:

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.