• I receive this error message:

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at ‘localhost’. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’re installing this locally on your mac? If so, read on…

    First off, you need to be aware of the LAMP stack… LAMP stands for

    L inux
    A pache
    M ySQL
    P HP

    Which are the technologies which drive your a wordpress application. Linux is the operating system. Apache is the ‘server’ which is responsible for taking internet requests and sending info from your site back out to the requestor machine. MySQL is the database technology used to store site information. PHP is the language which handles the logic.

    The reason I’m explaining this is because, in most cases, LAMP is what drives wordpress. However, you don’t have a linux machine, you have a MAC machine, so LAMP won’t work for you – you need MAMP.

    Anyhow, you can download a MAMP stack (Mac Apache MySQL PHP) for Mac. This is the -simplest- solution, you can download it here: https://www.mamp.info/en/downloads/

    This article explains how to install wordpress with MAMP: https://theme-fusion.com/local-wordpress-installation-mac/

    Yep, you’ll probably need to start over with your installation… but if you consider this a learning experience, then its great exercise ?? Let me know if this helps or not.

    * Edited to attempt a little clarification

    PS MAMP is the quick and dirty way to get things done. For a more sophisticated setup, I recommend getting started with Docker. Docker makes virtual Linux environments on your Mac machine and lets you run websites like its running on linux. It does a lot more than that too.

    The main benefit, however, of using something like Docker, is that messing with Docker’s virtual machine settings won’t mess with your Mac’s settings, which can get painful over time.

    Strongly recommend this for reading:
    How to install Docker on Mac: https://docs.docker.com/mac/step_one/
    How to install wordpress on Docker: https://docs.docker.com/compose/wordpress/

    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Installation Issues; unable to install wordpress on mac’ is closed to new replies.