标签:创建用户 strong mys 授权 man http mysql and pre
https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html
默认情况下mysq的 root用户是不能远程连接的
mysql> select host,user,password from mysql.user;
创建用户
create user test identified by ‘123456‘;
授权
grant all privileges on *.* to ‘test‘@‘%‘identified by ‘123456‘ with grant option; flush privileges;
修改用户密码
update mysql.user set password=password(‘新密码‘) where User="test" and Host="localhost";
删除用户
delete from user where User=‘test‘ and Host=‘localhost‘;
标签:创建用户 strong mys 授权 man http mysql and pre
原文地址:https://www.cnblogs.com/guo-rong/p/9692471.html