-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp-env: mysqlcheck: Got error: 1045: Access denied for user 'username_here'@'xxx.xx.x.x' (using password: YES) when trying to connect #29847
Comments
I'm getting the same error! |
The issue was fixed in #29800 but that version of Here are 2 ways to install the latest version:
Important: If you previously used Related issue: #29752 |
I tried two ways without luck (getting the same error).
Destroying and starting again from scratch. Both are giving me the same:
|
It's not pushed to NPM, you're not going to be able to install it that way. |
Ops! I see! |
Installing globally solved it for me. |
Closing as a duplicate of #29752. |
Installing globally (option 2) worked for me too! It doesn't work if @wordpress/env is already installed globallly. If that's the case run Thank you!! |
setting the version this way might work:
as seen in jetpack ☝️ |
There are discussions in WordPress slack about this, and it's going to be updated in npm very soon. |
|
I just encountered this issue and only the following worked for me: npx @wordpress/env@next destroy
npx @wordpress/env@next start |
Description
Getting an 'Access denied error' from mysql when starting a local WordPress environment using the wp-env package.
Step-by-step reproduction instructions
Create a block using create-block command:
npx @wordpress/create-block --wp-scripts --wp-env wp-block
Start wp-env using command:
npx wp-env start
Get an error in the terminal:
mysqlcheck: Got error: 1045: Access denied for user 'username_here'@'xxx.xx.x.x' (using password: YES) when trying to connect
Get an error when I go to localhost:8888:
Error establishing a database connection
Code snippet (optional)
.wp-env.json:
{
"core": "WordPress/WordPress",
"plugins": [
"."
]
}
WordPress information
Device information
Thank you for your help!!
The text was updated successfully, but these errors were encountered: