mysql 忘记 root 密码
来源:互联网 发布:刷黄金卷轴软件 编辑:程序博客网 时间:2024/06/05 18:51
# service mysql start# mysqlERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)# mysql -u root -pEnter password: 123456ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)# /etc/init.d/mysql stopShutting down MySQL.. [ OK ]# mysqld_safe --skip-grant-tables &160602 19:38:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql# mysqlmysql> use mysqlmysql> update user set password=password("123456") where user="root";mysql> exit# /etc/init.d/mysql restartShutting down MySQL..160602 19:41:32 mysqld_safe mysqld from pid file /var/lib/mysql/CS4.sz.fonsview.com.pid ended [ OK ]Starting MySQL. [ OK ][1]+ Done mysqld_safe --skip-grant-tables# mysql -u root -pEnter password: 123456Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 1Server version: 5.6.29-logmysql> show databases;ERROR 1820 (HY000): You must SET PASSWORD before executing this statementmysql> SET PASSWORD = PASSWORD('123456');mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql || performance_schema |+--------------------+# chkconfig --list //默认开机启动列表查询# chkconfig --level 2345 mysql on //设置默认开机启动
阅读全文
0 0
- MySQL忘记root密码
- MYSQL忘记root密码
- mysql root 密码忘记????
- mysql忘记root密码
- mysql root 密码忘记
- mysql 忘记root密码
- mysql忘记root密码
- mysql忘记root密码
- mysql root忘记密码
- mysql忘记root密码
- mysql root忘记密码
- MySQL忘记root密码
- mysql root 密码忘记
- mysql root 密码忘记
- MYSQL忘记root密码
- 忘记mysql root密码
- mysql root忘记密码
- mysql root 密码忘记
- Bootstrap学习笔记 17
- android6.0/7.0 dump CallStack使用
- pyhton flask中调试模式的使用
- 171130之Java序列化
- Dima and Sequence CodeForces
- mysql 忘记 root 密码
- 2017/11/29C语言笔记整理
- (大整数) n 的阶乘 , n 的阶乘连续相加,和a(a为任何整数)的n次方
- Linux和unix中 awk 的print浅谈
- 05-方法values演示) 06-Map集合-常见子类对象) 07-Map集合-HashMap存储自定义对象) 08-Map集合-TreeMap存储自定义对象) 1 2
- C++学习笔记--类型转换函数
- 《大宇:Qt从入门到精通》目录
- ES6 fetch函数与后台交互
- Angular Js 里面table, checkbox制作可多选,单选的表格