
MySQL
暖暖爸爸
要想得到从没得到的,就要做从没做过的!
展开
-
修改mysql数据库root密码
方法1:用UPDATE直接编辑user表首先登录MySQL。mysql> use mysql; mysql> update user set password=password('root') where user='root' and host='localhost'; mysql> flush privileges;原创 2017-08-17 09:16:30 · 220 阅读 · 0 评论 -
创建用户以及用户授权
创建用户create user 'sqy'@'%' identified by 'sqy';用户授权语法格式:GRANT privileges ON databasename.tablename TO 'username'@'host' ;例1:授予全部权限grant all on *.* to 'sqy'@'%'; grant all on *.* to 'sqy'@'localhost';例2:原创 2017-08-17 10:02:37 · 733 阅读 · 0 评论