linux mysql 常用命令和操作

xiaoxiao2021-02-27  200

进入数据库

mysql -u root -p

修改密码

set password = password(”)

创建用户和密码

CREATE USER ”@’%’ IDENTIFIED BY ‘123456’;

设置权限

grant all privileges on test.* to root@’192.168.2.71’ identified by ‘lichenyi’; //lichenyi 用户密码 grant all privileges on test.* to root@’%’ identified by ‘密码’;//给所有的权限给所有的ip

刷新权限

flush privileges;

转载请注明原文地址: https://www.6miu.com/read-9991.html

最新回复(0)