Remote connection MySQL server times not allowed to connect error resolution

Source: Internet
Author: User

1. Connect to the MySQL server using the root user via the command line and enter the MySQL database

MySQL> use mysqlDatabase changed

2. Authorizing with the GRANT statement

All privileges: represents all database Permissions

On *. *: Represents a view in all tables, views, functions, and so on, which can be a specific database under a table. such as Demodb.testtable

' Root ' @172.16.48.65: Indicates that the root user is allowed to connect to the MySQL server from the IP-172.16.48.65 host

Identified by ' admin ': Indicates the root user's password from 172.16.48.65 remote connection

With GRANT option: When Root is connected from a 172.16.48.65 host, you can grant permissions again to other users by using the GRANT statement.

Mysql> Grant  All Privileges  on *.*  to 'Root'@172.16.48. $Identified by 'Admin'  with Grant option ; Query OK,0Rows Affected (0.00Sec

3. Refresh Permissions

MySQL>privileges0 rows affected (0.00 sec)

Remote connection MySQL server times not allowed to connect error resolution

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.