MYSQL adds remote users or allows remote access.Add the remote user admin password as password grant all privileges on *. * TO admin @ localhost identified by \ 'password \ 'with grant option grant all privileges on *. * TO admin @ \ "% \"
By default, MySQL cannot be accessed through a remote machine. The following configuration allows you to enable remote access.
On the MySQL server:
Run the MySQL command to enter the MySQL command mode,SQL code
Mysql> use MySQL;
Mysql> grant
In many cases, remote access to mysql is required, but the root user can only connect locally. To achieve remote access to the mysql database on your pc, you must open another account. First, run the mysql Command on MySQLServer to enter the mysql
There are two major strides in opening MySQL's remote login account:1. Determine that the firewall on the server does not block port 3306.MySQL default port is 3306, need to determine the firewall does not block 3306 port, otherwise remote is unable
I. Windows environment 1. Change the table. It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log in to mysq on the computer of localhost.
I. Windows environment 1. Change the table.
I. Windows Environment 1. Change the table. It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log in to mysql on the computer of localhost, and change the "host" entry in the "user"
When MySQL is accessed remotely, MySQL resolves the domain name, resulting in slow access, plus the following configuration to resolve the problem
Prevent MySQL from doing domain name resolution
[Mysqld]
Skip-name-resolve
PHP remote connection
How can I not connect to MySQL on this server when I configure a server today. Remote logon is normal, and access to MySQL on this machine is normal. Error prompt SQLError (2003): Can't connect to MySQL server on '**' (IP) (10061) (** at that time,
Article One: WinForm Development general overview and technology realizationChapter Two: WinForm Development Sector Graph statistics and Excel data exportArticle Three: Access remote connection database and form packaging deployment
"Xiao Kee":
How to set MySQL remote access MySQL is not accessible by remote machine by default, remote access can be turned on by the following configurationOn the MySQL server side:Execute mysql command into MySQL command mode,SQL code
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.