摘要:
grant all privileges on *.* to 'username'@'%' identified by 'password'; 此语句可直接生成mysql用户,而不需要在mysql.user表中另外insert。 此语句也可用来为用户授权。 all privileges 可改为 se 阅读全文
posted @ 2017-03-01 14:22
西风古道
阅读(112)
评论(0)
推荐(0)
|
摘要:
grant all privileges on *.* to 'username'@'%' identified by 'password'; 此语句可直接生成mysql用户,而不需要在mysql.user表中另外insert。 此语句也可用来为用户授权。 all privileges 可改为 se 阅读全文
posted @ 2017-03-01 14:22
西风古道
阅读(112)
评论(0)
推荐(0)
摘要:
在mysql主配置文件中[mysqld]节点下添加 skip-grant-tables,实现跳过授权表而不需要密码登陆。 update mysql.user set password=password('new password') where user='root' ... 每次修改配置文件都需要 阅读全文
posted @ 2017-03-01 13:23
西风古道
阅读(105)
评论(0)
推荐(0)
|