• I am trying to set up everything on my MacBook:
    (1) MySQL is installed and running, but I am having issues connect a user (me) to the database

    (2) Apache is running with no errors
    (3) php is running with no errors

    I can’t get passed this error.

    I think hat there is a bug in WordPress in the setup, it’s looking for wp-config-sample.php,(I did try wp-config.php) but got an error, was looking for wp-config-sample.php However, wp-admin/setup-config.php is looking for wp-config.php

    yikes!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You might try manually creating wp-config.php (by copying over wp-config-sample.php;) and editing. Are you using MySQL 8 or MariaDB? If the former, then you need to modify the mysql config:
    https://www.akamenskiy.com/fix-wordpress-database-connection-mysql-8/

    Note that that is not necessary if you’re using MariaDB.

    Thread Starter Johnn Barrett

    (@hfug)

    Thanks so much for all your help!

    This fixed the one problem except I still get the database error. I am having the hardest time connecting the user and database.

    GRANT SELECT, INSERT, DELETE ON database.* TO ‘me’@’localhost’;

    Last time I used mySQL I don’t remember it being this challenging.

    Thread Starter Johnn Barrett

    (@hfug)

    yikes, this is crazy, I finally added the user to the database, but I still get the “Error establishing a database connection”

    I am getting the same error too, using MAMP. I have a few other local sites running no problem, but trying to start a new one and running the install is throwing me this screen. I wonder if this is something related to the newest versions wordpress?

    Thread Starter Johnn Barrett

    (@hfug)

    Aloha @mrtunes if you’re having this issue with MAMP, I have no idea how to help/ However, if you trying to do this on my macOS I wish you lick. Maybe I can help there, or at least maybe help you navigate the system, and can tell you where I said, “forget this!”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error Establishing a database connection’ is closed to new replies.