• Trying to install WordPress over LAMP with MySQL ver 8.0.20 on a VPS.

    Get “Error establishing a database connection” for the newly created database user.

    But able to connect with the ‘Root’ user.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Thread Starter eddyferns

    (@eddyferns)

    Thanks for the article.

    Tried everything in that but it still doesn’t connect.

    Able to comfortably install WordPress via the ‘root’ user.

    Moderator t-p

    (@t-p)

    Try discussing this with your hosting provider.

    Tyler

    (@tylerthedude)

    Just for clarification – when you say you’re able to connect as the root user are you referring to signing into MySQL or connecting to the database via WordPress? If it’s the latter, then I’d make sure the other database user you’re creating has the appropriate permissions for accessing the database.

    For example, if you have a database created called “wordpress” and you have a database user “wpuser” – you can grant privileges to that user for the newly created database. If you want this user to have all privileges within the database, then you can simply paste the following code:

    GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';

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