授权用户username使用password从任何主机连接到MySQL Server,并授予所有数据库所有表的全部操作权限
mysql>GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
允许用户username使用password从IP为192.168.1.9的主机连接MySQL Server,并授予所有数据库所有表的全部操作权限
mysql>GRANT ALL PRIVILEGES ON *.* TO 'username'@'192.168.1.9' IDENTIFIED BY 'password' WITH GRANT OPTION;
允许用户username使用password从IP为192.168.1.9的主机连接MySQL Server,并授予dsp数据库下的所有表的全部操作权限
mysql>GRANT ALL PRIVILEGES ON dsp.* TO 'username'@'192.168.1.9' IDENTIFIED BY 'password' WITH GRANT OPTION;
humandesignjr (2024/10/21 23:18:55)
< - :-o) https://mari-tyrek.ru/45861.html