MySQL : How to fix Can't connect to MySQL server on localhost 10061 error

A few months ago, when I installed MySQL server on Windows 10 to run WordPress locally, I chose to have the database files on my main SSD drive. As it was slowly filling up, I decided to migrate the MySQL database files to another drive. I assumed all I needed to do is to update a path for datadir option in my.ini configuration file, but that didn't work. After the database location move, starting the MySQL server gave me the 10061 error "Can't connect to MySQL server" error. Luckily, the fix was quite simple. I got the following MySQL Workbench … Continue reading MySQL : How to fix Can't connect to MySQL server on localhost 10061 error