You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MariaDB currently adds symlinks for mysql to use mariadb under the hood, but that is being deprecated and people get warnings like Deprecated program name. It will be removed in a future release, use 'mariadb' instead
With this change, the idea is to offer better utils for commands like db-command to pick the right binary.
I suppose that could imply that we officially support MariaDB, but I guess since WordPress core itself recommends it, we should at least test it.
It seems like this change may have introduced a hiccup in our workflow with wp-cli and mariadb.
in my wordpress docker container i'm running sudo --preserve-env /bin/wp-cli.phar --color --allow-root --skip-ssl --skip-plugins --skip-themes --debug db import remote.sql
Debug (db): Final MySQL command: /usr/bin/env mariadb --no-defaults --no-auto-rehash --batch --skip-column-names --host='db' --user='wordpress_user' --default-character-set='utf8' --execute='SELECT @@SESSION.sql_mode' (0.061s)
Error: Failed to get current SQL modes. Reason: ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it.
I dug a little deeper to find a little more debugging info. running the command diretly shows the same error
root@2fdd893ad051:/var/www/html# /usr/bin/env mariadb --no-defaults --no-auto-rehash --batch --skip-column-names --host='db' --user='wordpress_user' --default-character-set='utf8' --execute='SELECT @@SESSION.sql_mode'
ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it
i read adding the arg --port='3306' could help. that gets me a different error.
root@2fdd893ad051:/var/www/html# /usr/bin/env mariadb --no-defaults --no-auto-rehash --batch --skip-column-names --host='db' --port='3306' --user='wordpress_user' --default-character-set='utf8' --execute='SELECT @@SESSION.sql_mode'
WARNING: option --ssl-verify-server-cert is disabled, because of an insecure passwordless login.
ERROR 1045 (28000): Access denied for user 'wordpress_user'@'172.18.0.4' (using password: NO)
from there, it does work if i also add the "--password=blah" arg.
Has anyone else overcome this in their workflow with docker+mariadb+wp-cli and can offer help?
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See:
MariaDB currently adds symlinks for
mysql
to usemariadb
under the hood, but that is being deprecated and people get warnings likeDeprecated program name. It will be removed in a future release, use 'mariadb' instead
With this change, the idea is to offer better utils for commands like db-command to pick the right binary.
I suppose that could imply that we officially support MariaDB, but I guess since WordPress core itself recommends it, we should at least test it.