0

I'm Running Wordpress on a Bitnami VM. I updated the database user's password for my wordpress site. Everything except wp-cli works fine with that new password. Relevant part of wp-config.php looks like:

The site loads perfectly. I can do a MYSQL command line queries with the creds from wp-config.php, creating and dropping tables. Mysqldump works as well. However, wp-cli complains with error ERROR 1045 (28000) whenever I try to use it.

I've cleared the wp-cli cache.

I've checked the wp-cli debug info, and it's using the correct wp-config.php

The debug error is:

Debug (bootstrap): Running command: db import (0.059s)
ERROR 1045 (28000): Access denied for user '{db_username}'@'127.0.0.1' (using password: YES)

Debian version: 9.11

Mysql version: Ver 8.0.18 for linux-glibc2.12 on x86_64

wp-cli version: WP-CLI 2.4.0

Can anyone tell me what I'm doing wrong here?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.