The following articles mainly introduce the actual operation process for achieving MySQL remote connection. This article mainly introduces the specific operation steps for MySQL remote connection by using the relevant actual application code, the
Use the MySQLdb library of python to connect to the local mysql database. The following error is returned: Fileusrlibpython2.7dist-packagesMySQLdb _ init __. py, line81, inConnectreturnConnection (* args, ** kwargs)
How to enable remote connection in MySql: 1. Change the table method: Your account may not allow remote login, but you can only log on to localhost. At this time, you only need to log on to mysql on the localhost computer and change the "host" entry
By default, mysql does not support remote connection. This is also for security consideration. It is very serious to give your database to others.
For security considerations, the root account can only be accessed locally, but the root remote access
MysqlRemotely connect to the Mysql server database. The ERROR code is 1130, ERROR 1130: Host xxx. xxx is not allowed to connect to this MySQL serverIt is assumed that the remote connection User Permissions cannot be granted.In this way, you can
We know that MySQL does not support remote access by default. It is the default MySQL user root does not support remote access by default. Because it is localhost, remote access is not allowed, however, if you have opened an account remotely or not,
This article mainly introduces how to solve the problem that MySQL cannot connect remotely. the solution provided in this article is mainly for the case of IP address restrictions. if you need a friend, refer to the remote host, I have enabled the
After MySql is installed, there is only one ROOT user with super management permissions, and ROOT restrictions can only be used on the local database. What if we want to remotely manage MySql? So the fact
After MySql is installed, there is only one
When you remotely use the navicat for MYSQL client software to connect to MySQL DATA, 2003-can't connect to MySQL on '100. when 168.1.2 '(10061) error occurs, it is because MySQL does not allow remote connection.
The modification method is as
If the web and database are not on the same server, the MySQL server must allow remote connections to run the website properly.
There are two ways to set the remote connection of MySQL:
1. Change the table.It may be that your account is not
The local access to MySQL is fast. Several hundred queries are completed in seconds. When the database is set up to an internet server for remote access, the same query will take xx. XX seconds can only be described by turtles.
The following method
Mysql is used in the recording project. During the test today, we found that the mysql database cannot be remotely connected. It turns out that mysql does not allow remote connection by default.
After searching, we found a solution and recorded it
Add a user first (but also use the root user)
Format: grant permission on database name. Table name user @ login host identified by "User Password ";Grant select, update, insert, delete on *. * To zhxia @ '%' identified by '123 ';
Or all
Separating the web and MySQL databases is a good option to avoid insufficient web resources because a large number of database queries occupy the CPU. At the same time, the web server resources can be used to provide browsing services as much as
After the remote connection to SQL Server 2005 was completed last time, it is now MySQL's turn... think back to the connection string connecting to the MySQL database:
Server =Localhost; Database = gyl; uid = root; Pwd = 111111;
The value of the
1. When the mysql client initiates a connection request, the MySql Server takes the initiative to check the client host name.
2. First, find the/etc/hosts file in the Windows System directory and search for the ing between domain names and IP
If the web and database are not on the same server, the MySQL server must allow remote connections to run the website properly.
There are two ways to set the remote connection of MySQL:
1. Change the table.
It may be that your account is not
I used ms SQL Server all the time. The first time I used MySQL, I encountered a problem.
MySQL server installed on Windows XP and then remotely connected to MySQL using the client tool EMS SQL manager for MySQL always prompts failure. No problem
1. Modify the MySQL configuration file (/etc/MySQL/My. CNF) and comment out the following lines:# Bind-address = 127.0.0.1
2. Restart the MySQL database. For the Ubuntu system, run the following command:Sudo/etc/init. d/MySQL restart
3. log on
Error 1130: Host '192. 168.1.3 'is not allowed to connect to this MySQL Server
Solution: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
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.