-1

After updating to MacOS Mojave, I installed WordPress locally with WordPressify

I installed the latest version of MySQL and added a database via MySQLWorkbench.

MySQL was up and running. Everything seemed to be working. Running the development server launched the WordPress initial configuration page. Database credentials were correct. Still, WordPress was unable to connect to the database.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
  • is this still an open question? If not, you may well delete it or if you think is worth it, write an answer yourself. – Jan Oct 15 '18 at 03:31
  • I found the solution and posted it, just in case anyone else experiences the same thing. – KeithRatner Feb 13 '19 at 20:30

1 Answers1

0

First step to solving this was to enable debugging in wp-config.php:

define('WP_DEBUG', true);

This revealed that the database was running, but the authentication method was failing. This was solved in System Preferences... MySQL... Initialize Database and selecting Use Legacy Password Encryption.

Hope this helps!

Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360