-
Notifications
You must be signed in to change notification settings - Fork 60
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
Don't hardcode MySQL command names #275
Conversation
The compatibility links MariaDB provides for MySQL commands are deprecated and will be removed in the future. We should use the MariaDB command name if that is the current MySQL provider. Fixes wp-cli#271
@mrsdizzie How am I able to test your fix? I get the same issue on |
This PR hasn't been merged yet so outside of checking out my personal branch here you'd need to wait until it gets reviewed and merged |
If you create branch in this repo instead of forking, people could install it via |
I just updated to the latest |
I don't think the PR actually touched Lines 400 to 401 in e9c4e8a
Lines 499 to 500 in e9c4e8a
Lines 715 to 722 in e9c4e8a
Line 804 in e9c4e8a
Lines 1735 to 1741 in e9c4e8a
^ this one is ultimately used by Lines 2135 to 2142 in e9c4e8a
@mrsdizzie wanna do a follow-up PR? |
Yes, I'll think on the best way to do this since wp cli really does assume and use the mysql binary in many places. Probably an initial PR to wp-cli itself for a new utils function that returns the correct binary based on some heuristics (presumably people will have both installed at some point if they are intentionally separating to not be a drop in replacement anymore). |
I still getting Deprecated warnings as far as I know I am using the latest wp cli docker image... $ wp cli info |
Yeah I think we still need that follow-up PR |
The compatibility links MariaDB provides for MySQL commands are deprecated and will be removed in the future. We should use the MariaDB command name if that is the current MySQL provider.
Fixes #271
(We still use
mysql
all over the place in wp-cli, but that isn't going away from MariaDB.)