?? MySQL By default is not able to access the remote machine via the following configuration to enable remote access
On the MySQL server side:
Run the MySQL command into MySQL command mode,
SQL code
- mysql> use mysql;
- MySQL > grant all on *.* to [ Email protected] '% ' identified by ' admin ' with grant option ;
- #这句话的意思 , and agree to any IP address ( % that means above) with Admin account and password (admin) to access this mysql server ,
- #必须加类似这种帐户, capable of remotely landing.
mysql> use mysql;mysql> grant all on * * to [e-mail protected] '% ' identified by ' admin ' with GRANT OPTION; #这句话的意思. Agree that no matter what IP address (the above is the meaning) of the computer with the admin account and password (admin) to access the MySQL server# must be similar to this account, talent enough to remotely login.The root account cannot be remotely logged in and can only be logged on locally
How to set up MySQL remote access