1. 程式人生 > >mysql 創建用戶遠程連接

mysql 創建用戶遠程連接

all root roo clas 推送 ant leg 服務器 oot

GRANT ALL PRIVILEGES ON *.* TO ‘myuser‘@‘%‘IDENTIFIED BY ‘mypassword‘ WITH GRANT OPTION; 
如果是固定ip就這麽寫
grant all privileges on *.* to ‘root‘@‘192.168.0.49‘identified by ‘123‘ with grant option;
//推送設置到內存或重啟服務器也行
  mysql>FLUSH PRIVILEGES

mysql 創建用戶遠程連接