Unable to access MySQL solution under Linux system

Source: Internet
Author: User

MySQL is a relational database management system, but recently a user reflects, in the Linux system can not access MySQL, I believe many users have encountered this problem, this is how it? What should I do if I can't access MySQL under Linux system? Let's look at the solution together.

1, problems and anomalies

Threadpoolasynchronousrunner-com.mchange.v2.async.threadpoolasynchronousrunner$deadlockdetector@75d634ea-- Apparent deadlock!!! Complete Status:

Managed Threads:3

Active Threads:3

Active Tasks:

2. Find the reason

It's a question of MySQL permissions.

3, the resolution process

1 "Mysql-uroot-proot Mydbname

2 "Grant all Privileges" *.* to wangs@ '% ' of ' identified by ' 123456 ';

3 "flush privileges;

4 "exit;

5 "/etc/init.d/mysql Restart

4. Description of the Order

Enter MySQL, user is root, password is root, database is mydbname,-u meaning for user, p-meaning is password,

Increase user wangs, all permissions, database for *, behind. * Must be small,% for all remote IP address, if you want to limit the IP address, write the IP address alone,

The password is 123456, note that the quote ' is not small, used to represent a string.

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.