Wp acf Error: Error establishing a database connection

What issue or error are you experiencing?

Hi, thanks for app.
I want to change custom fields from bash terminal.
But i have this error from header, when i run command

wp acf

My system ubuntu 22.04

System Details

  • Local Version:
    8.1.0
  • Operating System (OS) and OS version:
    Ubuntu 22.04

Hi @serii366

There could be a lot of different causes for this. You could start here:

If you’re still having trouble please share your Local Logs with us: Retrieving Local’s Log File

I mean, to connect mysql in terminal like msql -u root -p

My config

define( 'DB_NAME', 'local' );

/** Database username */
define( 'DB_USER', 'root' );

/** Database password */
define( 'DB_PASSWORD', 'root' );

/** Database hostname */
define( 'DB_HOST', 'localhost' );

And

mysql -u root -p

Have an error

❯ mysql -u root -p
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES

This article saved my life)))

1 Like

Hi @serii366 - Glad you found what you needed and thank you for sharing!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.