給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;