错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)解决办法
来源:互联网 发布:java init和cinit 编辑:程序博客网 时间:2024/04/30 10:02
#1.停止mysql数据库
/etc/init.d/mysqld stop
#2.执行如下命令
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
#3.使用root登录mysql数据库
mysql -u root mysql
#4.更新root密码
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
#最新版MySQL请采用如下SQL:
mysql> UPDATE user SET authentication_string=PASSWORD('newpassword') where USER='root';
#5.刷新权限
mysql> FLUSH PRIVILEGES;
#6.退出mysql
mysql> quit
#7.重启mysql
/etc/init.d/mysqld restart
#8.使用root用户重新登录mysql
mysql -uroot -p
Enter password: <输入新设的密码newpassword>
/etc/init.d/mysqld stop
#2.执行如下命令
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
#3.使用root登录mysql数据库
mysql -u root mysql
#4.更新root密码
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
#最新版MySQL请采用如下SQL:
mysql> UPDATE user SET authentication_string=PASSWORD('newpassword') where USER='root';
#5.刷新权限
mysql> FLUSH PRIVILEGES;
#6.退出mysql
mysql> quit
#7.重启mysql
/etc/init.d/mysqld restart
#8.使用root用户重新登录mysql
mysql -uroot -p
Enter password: <输入新设的密码newpassword>
0 0
- 错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)解决办法
- Access denied for user 'root'@'localhost' (using password: YES)解决办法
- Access denied for user 'root'@'localhost' (using password: YES) 解决办法
- 关于MySql登录出现错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)
- 错误代码#1045 Access denied for user 'root'@'localhost' (using password:YES)
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- 1045 - Access denied for user 'root'@'localhost'(using password:YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- 1045 access denied for user 'root'@'localhost' using password yes
- 1045-Access denied for user 'root'@'localhost'(using password:YES)
- Access denied for user 'root'@'localhost' (using password: YES) 1045
- 1045 access denied for user\'root\'@\'localhost\' using password yes
- 1045 access denied for user 'root'@'localhost' using password yes
- 告诉你为什么数据要取对数
- EL表达式的基础用法
- Qt--信号与槽机制
- oracle---数据完整性和约束
- Android中的java基础(二)——装箱与拆箱及不同基本类型的比较(类型转换)
- 错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)解决办法
- 初读小程序
- poj 1191 棋盘分割(dp)
- 在Oracle Solaris 操作系统下安装Oracle 数据库的必看文章
- eclipse maven插件问题:error occurred while automatically activating bundle org.eclipse.m2e.core.ui (525)
- c#reportViewer1报表创建与使用
- TMS320F28335之外部接口与CPLD通信问题
- oracle---索引
- 实现简易版@功能