用命令开启mysql远程连接

 mysql -u root -p 
 use mysql;
 mysql> grant all privileges on *.* to "root"@"%" identified by '';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec) 

 OK

你可能感兴趣的:(mysql)