phpstudy远程连接mysql

 

 格局如图所示执行以下命令

mysql -u root -p 
mysql>use mysql; 
mysql>select 'host' from user where user='root'; 
mysql>update user set host = '%' where user ='root'; 
mysql>flush privileges; 
mysql>select 'host'   from user where user='root'; 
成为不了聪明的人,那就做一个有耐心、肯钻研,坚持不懈,永不放弃的人……
原文地址:https://www.cnblogs.com/wrld/p/9296008.html