mysql授權 mysql授權

2021-10-18 22:25:40 字數 666 閱讀 7972

2. 授權法。

pis1:允許使用者myuser使用mypassword從任何主機連線到mysql伺服器。

sql**

1:grant all privileges on *.* to 'myuser'@'%' identified by 'mypassword' with   grant option;

2: flush   privileges;

pis2:允許使用者myuser從ip為192.168.1.6的主機連線到mysql伺服器,並使用mypassword作為密碼

sql**

1. grant all privileges on *.* to 'myuser'@'192.168.1.3' identified by  'mypassword' with grant option;

2. flush   privileges;

pis3:允許使用者myuser從ip為192.168.1.6的主機連線到mysql伺服器的dk資料庫,並使用mypassword作為密碼

sql**

1. grant all privileges on dk.* to 'myuser'@'192.168.1.3' identified by   'mypassword' with grant option;

2. flush   privileges;

mysql 授權 mysql 使用者授權

mysql grant 許可權1,許可權2,許可權n on 資料庫名稱.表名稱 to 使用者名稱 使用者位址 identified by 連線口令 許可權1,許可權2,許可權n代表select,insert,update,delete,create,drop,index,alter,grant,re...

mysql授權書 MySQL授權

一 建立新使用者 insert into mysql.user host,user,password values localhost newuser password 123456 如果報錯將my.ini或者my.cnf,查詢 sql mode strict trans tables,no aut...

mysql要買授權嗎 MySQL授權

一 建立新使用者 insert into mysql.user host,user,password values localhost newuser password 123456 如果報錯將my.ini或者my.cnf,查詢 sql mode strict trans tables,no aut...