萬盛學電腦網

 萬盛學電腦網 >> 數據庫 >> mysql教程 >> 給Mysql添加遠程訪問權限的方法

給Mysql添加遠程訪問權限的方法

 user:myuser  pwd:mypassword 從任何主機連接到mysql服務器

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

user:myuser  pwd:mypassword 從192.168.1.3連接到mysql服務器

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

copyright © 萬盛學電腦網 all rights reserved