Mysql sets up other machines to access

Source: Internet
Author: User
By default, the Mysql service only allows access from the local machine through the client. We need to change the user table of the mysql database to grant access to other machines. Change the host field of the user table. It is originally localhost and changed to %, which indicates that any machine is allowed to access 192.168.1. %, indicating that only the IP address segment can be accessed .?

By default, the Mysql service only allows access from the local machine through the client. We need to change the user table of the mysql database to grant access to other machines. Change the host field of the user table, which is originally localhost and changed to %, which indicates that any machine is allowed to access 192.168.1. %, indicating that only the IP address segment can be accessed. ?

Set other machines for access in Mysql

By default, the mysql service only allows access from the local machine through the client. We need to change the user table of the mysql database to grant access to other machines.

Change the host field of the user table, which is originally localhost and changed to %, to allow access by any machine.

192.168.1. %, indicating that only the IP address segment can be accessed.

?

In addition, an error is reported during data import.

MySql Error Code: 2006-MySQL Server offline Error

Modify the my. ini file and add max_allowed_packet = m to it.

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.