**Windows下phpstudy設置允許遠程訪問mysql數據庫**
**1、****在phpstudy中選擇mysql命令行**
**?**
**2、輸入Mysql 管理員root 的密碼 , 右擊粘貼就可以**
**?**
**3、執行 use mysql? ?回車**
?
**4、然后執行grant all privileges on \*.\* to root@'%' identified by '你的root密碼';??把??****你的root密碼??****改成您的Mysql 數據庫root 的密碼**
?
1. grant all privileges on \*.\* to root@'%' identified by '你的root密碼';
*復制代碼*
**?
5、執行flush privileges;**
1. flush privileges;
*復制代碼*