Mysql 访问权限

来源:互联网 发布:新网域名登陆 编辑:程序博客网 时间:2024/06/05 20:48
  1. 登入Mysql: mysql -u root -p
  2. grant all privileges on *.* to root@'%' identified by 'qwer';//给予所有数据库访问权限,若要指定固定IP,替换%即可
    grant all privileges on test.* to 'root'@'%' identified by 'qwer';//给予指定数据库访问权限;

参考来源

0 0
原创粉丝点击