西风古道

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年3月1日

摘要: grant all privileges on *.* to 'username'@'%' identified by 'password'; 此语句可直接生成mysql用户,而不需要在mysql.user表中另外insert。 此语句也可用来为用户授权。 all privileges 可改为 se 阅读全文
posted @ 2017-03-01 14:22 西风古道 阅读(108) 评论(0) 推荐(0) 编辑

摘要: 在mysql主配置文件中[mysqld]节点下添加 skip-grant-tables,实现跳过授权表而不需要密码登陆。 update mysql.user set password=password('new password') where user='root' ... 每次修改配置文件都需要 阅读全文
posted @ 2017-03-01 13:23 西风古道 阅读(102) 评论(0) 推荐(0) 编辑