別人需要連接自己數據庫的時候需要對其開發遠程連接。
1、進入MySQL
2、使用mysql庫執行use mysql;
3、查詢表中 執行:select user,password,host from user;
4、執行:grant all privileges on *.* to root@"xxx.xxx.xxx.xxx" identified by "密碼";
xxx.xxx.xxx.xxx :表示為允許訪問的主機ip;密碼:表示本數據庫的連接密碼
5、執行之后再次查詢:select user,password,host from user;