-
Notifications
You must be signed in to change notification settings - Fork 58
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 DB won't work if db connection is secured #126
Comments
@dotker WP-CLI just uses the configuration that is set in your What are you actually trying to do that fails, and what error does it produce? |
If the flag: define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL); is on. Getting mysqldump: Got error: 1045: "Access denied for user ... So it doesn't work with secure database connection. If a wp plugin does a backup with SSL connection to a remote database it works fine but wp-cli doesn't. |
Also just like to add that the database user has REQUIRE SSL with it so it can only accept secured connections. And thanks for looking and/or assistance on this issue. |
@dotker As you're referencing The Did you try adding the |
@dotker Any further information to share, or can we close this issue? |
I think the $ wp db export --path=/var/www/html
mysqldump: Got error: 9002: "SSL connection is required. Please specify SSL options and retry." when trying to connect
$ wp db export --ssl --path=/var/www/html
Success: Exported to 'wordpress-2020-09-15-ab86af3.sql'. |
Hello guys and gals! Anyone got wp-cli to work with secured database connections? Seems not working and seems people are rarely using a secured database connections(for remote databases)?
The text was updated successfully, but these errors were encountered: