摘要: 1.关闭mysql killall mysqld 2.启动时加--skip-grant-tables 参数 mysqld_safe --defaults-file=/data/3306/my.cnf --skip-grant-table & 3.登录 mysql -uroot -p -S /data 阅读全文
posted @ 2017-04-27 23:23 shijiu520 阅读(189) 评论(0) 推荐(0)
摘要: 1.停止mysql /etc/init.d/mysqld stop 2.使用--skip-grant-tables 启动mysql ,忽略授权登录认证 mysqld_safe --skip-grant-tables --user=mysql & mysql -u root -p 提示:在启动时加--skip-grant-tables 参数,表示忽略授权表验证 登录后 update my... 阅读全文
posted @ 2017-04-27 23:18 shijiu520 阅读(93) 评论(0) 推荐(0)
摘要: 修改密码法一: mysqladmin -u root -p'oldpassword' password 'newpassword' 法二(进入数据库改) update mysql.user set password=password('newpassword') where user='root' and host='localhost'; flush privileges; 法三(进入数据... 阅读全文
posted @ 2017-04-27 23:13 shijiu520 阅读(703) 评论(0) 推荐(0)
摘要: Options: General options: -h [ --help ] show this usage information --version show version information -f [ --config ] arg ... 阅读全文
posted @ 2017-04-27 10:15 shijiu520 阅读(178) 评论(0) 推荐(0)