简体   繁体   中英

The specified password for user account 'root' is not valid, or failed to connect to database server

I am getting this error while installing WordPress using Windows platform installer 5.0 on a Windows Server 2012R2.

Currently I have a php site with mySQL on that server which is running fine, PHP, MYSQL was already installed as part of setting up that site couple of months ago.

MySQL .NET Connector was already installed, I have repair it( http://dancerscode.com/blog/the-annoying-mysql-web-platform-installer-bug/ ) using latest installer as well. Installed WebMatrix3 which was mentioned in same article but No luck.

I have made sure that mySQL password is correct by logging in using command line.

Any idea? 在此输入图像描述

Finally found the solution.

I had Connector/Net 6.9.9 installed

I uninstalled it and then Installed Connector/Net 6.4.6

Old version of Connector can be downloaded here( https://dev.mysql.com/downloads/connector/net/ )

It is just because connector after install and uninstall have different versions of Connector/Net. The 6.4.4 version worked for me.

I have been on this for 3 days and tried everything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM