root本机登录(用户名:root|host:127.0.0.1|密码:123456)
mysql -uroot -h127.0.0.1 -p123456
root创建超级只读账户(所有库和表的查询权限,用户名:read|密码:readonly)
grant select on *.* to "read"@"%" identified by "readonly"
等等后续。。。
root本机登录(用户名:root|host:127.0.0.1|密码:123456)
mysql -uroot -h127.0.0.1 -p123456
root创建超级只读账户(所有库和表的查询权限,用户名:read|密码:readonly)
grant select on *.* to "read"@"%" identified by "readonly"
等等后续。。。
本文标题:mysql命令行的简单操作
本文链接:https://www.haomeiwen.com/subject/luxyaxtx.html
网友评论