Wampserver installed in the server, but MySQL cannot telnet the solution

Source: Internet
Author: User

When using MySQL Workbench or navicat to connect to the server's MySQL, sometimes there will be access denied,

Because no other user rights are assigned to MySQL, you can only log on locally, so set it up.

Settings are as follows:

Open the MySQL console, enter a password, log in to the database, execute the use MySQL command;

Use MySQL; The Database changed will appear;

Re-execution:

Grant all privileges on * * to ' Your user name ' @ '% ' identified by ' your password ';

The results are as follows:
Query OK, 0 rows Affected (0.00 sec)
* * Mark All tables under all databases, ' * '. * Mark All tables under Database *

Then execute:
Grant all on * * to ' your username ' @ '% ' identified by ' your password ';

The results are as follows:
Query OK, 0 rows Affected (0.00 sec)
% number can be entered to allow access to the IP address or host name,% of all IP

Then execute:

Flush privileges;

The results are as follows:
Query OK, 0 rows Affected (0.00 sec)
Mysql> exit; Finally, you can log in remotely by restarting the MySQL service.

Wampserver installed in the server, but MySQL cannot telnet the solution

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.