# 赋予权限MySQL> grant 权限参数 on 数据库名称.表名称 to 用户名@用户地址 identified by '用户密码'; # 立即生效权限MySQL> flush privileges; 权限参数:all.all privileges,表示赋予用户全部权限 权限参数:select,insert,update,delete,create,drop,index,alter,grant,references,reload,shutdown,process,file等14个权限 数
一.mysql 赋给用户权限 grant all privileges on *.* to joe@localhost identified by '1'; flush privileges; 即用user=joe password=1 登陆 附: mysql> grant 权限1,权限2,-权限n on 数据库名称.表名称 to 用户名@用户地址 identified by '连接口令';权限1,权限2,-权限n代表select,insert,update,delete,create,d
mysql -u root -p insert into mysql.user(Host,User,Password) values('localhost','guest',password('123456')); grant all privileges on xspeeder.* to guest@"%" identified by '123456'; flush privileges; create database infodb; grant all privileges on
解决办法 grant all privileges on *.* to joe@localhost identified by '1'; flush privileges; 拿 joe 1 登陆 附: mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’; 权限1,权限2,…权限n代表select,insert,update,delete,create,drop,index,alter,grant,refe