MySql连接出现Access denied for user 'root'@'localhost' (using password: YES)解决方法(附其它关联安装过程中的问题)
2019-08-29 14:26
1771 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_40695642/article/details/100136557
MySql连接出现Access denied for user 'root'@'localhost' (using password: YES)解决方法
今天在配置公司服务器时,在webconfig中输入了mysql的账号和密码(是一个C#B-S架构的系统),结果发现再访问页面时候发现以上问题,我在服务器上启动MySql是好的,但是配置webconfig后却连不上是什么原因呢?
于是想到可能是MySql没有开启远程访问,于是在my-default.ini(或者是my.ini可能版本不同,名称不同)加入
skip-grant-tables这行命令
然后重启服务,再次进入数据库修改个密码强度高点的密码,使用flushuxsh privileges刷新,然后就可以正常访问了
1.进入mysql数据库:
mysql> use mysql;
Database changed
2.给root用户设置新密码:
mysql> update user set password=password("新密码") where user="root";
Query OK, 1 rows affected (0.01 sec) Rows matched: 1 Changed: 1 Warnings: 0
3.刷新数据库 mysql> flushuxsh privileges;
Query OK, 0 rows affected (0.00 sec)
4.退出mysql: mysql> quit;
Bye
附:新服务器安装mysql不成功原因
1.没有安装vc++2008,vc++2010这样的话会提示缺少dll文件的
2.安装好之后要在注册表注册
3.重启服务器
附:新服务器直接放web网站跑不起来报500之类的错误
1.查看iis组件是否安装齐全,不知道的就全都安装,省得麻烦
2.如果是C#的话记得安装.net4.5并注册.net
相关文章推荐
- 连接mysql出现Access denied for user ‘root’@’localhost’ (using password:YES)问题解决办法
- Linux下连接Mysql出现:Access denied for user 'root'@'localhost' (using password:YES)的解决方法
- 如何解决PHP连接MySQL时出现的Access denied for user 'root' @ 'localhost'(using password :YES)
- win10下MySQL 8.0登录Access denied for user‘root’@‘localhost’ (using password: YES)问题的解决方法
- 使用MySQL API时出现如下问题的解决方法:Access denied for user 'root'@'localhost' (using password: YES)
- MySQL常见问题之——Access denied for user 'root'@'localhost' (using password:YES)解决方法
- 238,安装mysql出现Access denied for user 'root'@'localhost' (using password: YES)的问题
- MYSQL:Access denied for user 'root'@'localhost' (using password:YES) 问题解决方法
- MySql 出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES).问题解决方案
- eclipse 连接 mysql出现 Access denied for user 'root'@'localhost' (using password:YES)问题
- Mac安装Mysql遇到ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)解决方法
- 连接mysql数据库出现错误:1045-Access denied for user 'root'@'localhost' (using password:YES) 解决方法
- 登陆MySQL出现error:‘Access denied for user 'root'@localhost (using password :YES)'解决方法
- 解决用Mysql 使用navicate远程连接数据库出现1045 access denied for user 'root'@'localhost' using password yes
- Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法
- 解决Navicat for MySQL打开连接时出现错误提示1045 access denied for user 'root'@'localhost' (using password yes)的问题
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:
- mac下安装mysql5.7.18,连接出现Access denied for user 'root'@'localhost' (using password: YES)
- 安装mysql出现access denied for user 'root@localhost'(using password: YES)
- mysql连接问题1045 Access denied for user 'root'@'localhost' (using password:YES)