Why would I want to install WordPress locally on my Mac?
Well, the main reason ( and the only reason that I’ll use it for ) is to test out new themes. Installing locally eliminates the hassle of having to upload the .css and .php files everytime you make a change to their content. And it means that your live site is not disturbed and your viewers are not greeted by a half finished theme.
How would I go about this?
Really, really easily – That’s how.
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'root'); // Your MySQL username
define('DB_PASSWORD', 'root'); // ...and password
define('DB_HOST', 'localhost:8888'); // 99% chance you won't need to change this value
And that’s it.
I’m off for some lunch.