随笔分类 -  mysql

摘要:http://yanue.net/post-97.html GRANT语句的语法: mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by "连接口令"; 看上去像这样: GRANT privileges (columns) ON what TO user IDENTIFIED BY "password" WITH ... 阅读全文
posted @ 2015-11-05 13:40 生命的力量在于不顺从 阅读(1636) 评论(0) 推荐(0)
摘要:http://yanue.net/post-96.html MySQL查看用户权限命令的两方法: 一. 使用MySQL grants MySQL grant详细用法见:http://yanue.net/post-97.html使用方法: mysql> show grants for username@localhost; 实例: mysql> show grants for root@... 阅读全文
posted @ 2015-11-05 13:28 生命的力量在于不顺从 阅读(938) 评论(0) 推荐(0)
摘要:在linux下,如果忘记了mysql中root用户的密码可以采用以下办法解决。 1. 修改my.cnf,加入skip-grant-tables 修改mysql的配置文件my.cnf,在[mysqld]段增加skip-grant-tables[mysqld] ...... ...... skip-grant-tables 2. 重启mysqld # service mysqld re... 阅读全文
posted @ 2015-10-14 09:07 生命的力量在于不顺从 阅读(230) 评论(0) 推荐(0)