毕设笔记--MySQL出现error 1045 access denied
来源:互联网 发布:包装设计收费 知乎 编辑:程序博客网 时间:2024/05/28 06:06
前天晚上连数据库突然出现的各种问题。搞了一天。。。
记录下。MySQL出现error 1045 access denied
-------------------------------------------------------------------------
1.停止Mysql服务和进程
2.运行cmd ,切换到MySQL的bin目录下
3.输入命令:mysqld --defaults-file="放MySQLmy.ini文件的路径“ --console --skip-grant-tables
4.等到跳出信息说mysqld ready for connection.......等信息时,说明MySQL已经起来了。
5.不关闭这个cmd窗口,重新打开一个窗口,同样进入MySQL的bin目录
6.输入命令:mysqld -u root mysql
7.出现welcome等信息说明已经进入MySQL了
8.接下来重置密码。输入一下命令:update mysql.user set authentication_string=password('新密码') where user='root';
9.输入命令:flush privileges
10.输入命令:quit
11.关闭第一个DOS窗口,在任务管理器中打开MySQL服务
12.在第二个DOS窗口中用新密码连接MySQL。输入命令:mysql -u root -p
13.输新密码。可以使用了。
参考:http://www.360doc.com/content/13/0817/16/3735408_307838840.shtml
0 0
- 毕设笔记--MySQL出现error 1045 access denied
- 打开数据库MySQL出现 error:1045 access denied for user
- mysql笔记: ERROR 1045 (28000): Access denied for user
- MySQL Error Number 1045 Access denied
- MySQL ERROR 1045 (28000): Access denied
- 新装mysql后登录出现root帐号提示mysql ERROR 1045 (28000): Access denied for use
- ubuntu MySQL访问时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
- MySQL安装后出现“Error 1045(28000) Access Denied for user....."解决办法
- windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost'
- windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost'
- mysql登录出现:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost'
- windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost'
- windows xp 安装MYSQL 出现Error 1045 access denied 的解决方法
- mysql出现:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 错误
- 解决初次登录MySQL出现ERROR 1045 (28000):Access denied for user 'root'@'localhost'问题
- MySql 出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES).问题解决方案
- MySQL登录出现 ERROR 1045 (28000): Access denied for user 'root'@'localhost'
- 识别工具
- STM32不使用外部晶振的接法
- java输出重定向
- SDAU 课程练习3 1018
- grunt解决前后端跨域问题
- 毕设笔记--MySQL出现error 1045 access denied
- 结婚了
- mysql分组取每组前几条记录(排名) 附group by与order by的研究
- Android录制声音文件(音频),并播放
- 为 ngui TweenPosition 添加 pingpongone
- threshold的用法介绍
- Yii 中 jQuery 的引入问题
- Spring生命周期
- 编程题:串珠子