mysql10061 login failed error solution

First check that the MySQL service is not started. If it is not started, start the service.

Solution:

 

first step

Delete my.ini under c:\windons

second step

Open c:\mysql\bin\winmysqladmin.exe and enter username and password

The third step is to enter mysqld-nt -remove under dos to delete the service

Then enter mysqld-nt -install

The fourth step is to enter mysql to start successfully.

Other methods you can refer to:

1. See if localhost in the hosts file points to 127.0.0.1

2. If the mysql service is not started, you can run net start mysql.

3. Some related commands:

mysqld-nt --install #Start Mysql

mysql #Run Mysql

mysql -h ipAddress -u username -p

Or: go directly to the bin and click mysqld.exe or mysqld-nt.exe to see if its process can run normally. If not, go to the control panel and start it in the service to see what is wrong. If it doesn't work, just delete mysql in Add and delete, and then reinstall mysql, which can usually solve the problem. You can back up DATA before installation.

Error: Can't connect to MySQL server on 'localhost' (10061)

Errno.: 2003

Error number: 2003

problem analysis:

Unable to connect to MySQL server, possible scenarios are:

1. The MySQL service is not started, which is generally caused by the failure of MySQL to start under abnormal conditions, such as no available disk space, wrong setting of the MySQL basedir path in my.ini, etc.;

2. MySQL server resources are tight, resulting in failure to connect.

Solution:

1. If you are a virtual host user (purchased space), contact the space provider to check whether MySQL starts normally, and confirm the configuration information of MySQL (whether it is localhost);

2. If you are an independent host user (with the authority to manage the host), follow the steps below to check:

     1)检查磁盘空间是否还有剩余可用空间,尽量保持有足够的磁盘空间可用。

     2)检查 my.ini 里的 basedir (MySQL 安装地址) 和 datadir (数据目录存放地址)等参数设置是否正确,然后重新启动下 MySQL 服务。

还有一种方法是将服务器的windows补丁。

微软9月9日发布了TCP/IP更新补丁(KB967723),如果服务器开启自动更新或者有自动更新软件下载更新了这个补丁,那么就会出现这个问题。

有人可能会问,为什么9号出现的补丁,到现在才发现问题?

大家都知道,服务器不是每天都重启的,有的服务器可能一个月或者一年半载重启一次,有的可能在9月9日以后重启过服务器,所以补丁生效了(我个人这么认为)。

补丁卸载方法:登录服务器,进入控制面板 --- 添加和删除程序 -- (勾选上方的“显示更新”)

在里面可以看到更新的KB967723这个补丁,然后就想卸载普通软件一样卸载,卸载中会提示你,如果卸载可能导致程序运行出错,没关系,选择“是”,继续卸载。

卸载完成后程序服务器,一切正常!

至于该补丁修补什么漏洞,卸载后是否会出现服务器安全隐患,这个先不说,要MYSQL正常运行,临时的解决办法只有如此。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325517953&siteId=291194637