Open pgnd opened 2 months ago
not just warnings, but failures
where
ls -al `which mysql`
lrwxrwxrwx 1 root root 7 Aug 11 20:00 /usr/local/mariadb-lts/bin/mysql -> mariadb*
and
DB_NAME=$(wp-cli config get DB_NAME)
SITE_URL=$(wp-cli option get siteurl)
SITE_NAME=$(wp-cli option get blogname)
THEME_NAME=$(wp-cli theme list --status=active --field=name)
this works
SQL_QUERY="SELECT * FROM wp_options WHERE option_value LIKE '%$SITE_URL%' OR option_value LIKE '%$SITE_NAME%' OR option_value LIKE '%$THEME_NAME%';"
mariadb ${DB_NAME} -e "$SQL_QUERY"
as does
mysql ${DB_NAME} -e "$SQL_QUERY"
but,
wp-cli db query "${SQL_QUERY}"
Error: Failed to get current SQL modes. Reason: /usr/bin/env: ‘mysql’: No such file or directory
Isn't this a duplicate of #270, which you opened 2 weeks ago?
@swissspidy
ugh. :facepalm: completely forgot that! sorry for the noise ...
i'll close THAT and leave THIS, since I'm dealing with the FAILs now.
@pgnd could you check this patch https://github.com/wp-cli/db-command/pull/274?
i've installed
i use mariadb
where
and the
mysql
-equivalent commands are provided as symlinkson exec,
wp-cli
returns deprecation warningscurrently, the
wp-cli
return with the deprecation notice causes some grief mainly with scripts. but it will likely, eventually break.as mysql/mariadb continue to diverge, MDB's deprecating the mysql* cmds. not entirely sure where the end of the thread is, but these are a start
"Remove MySQL names" https://jira.mariadb.org/browse/MDEV-30201
"deprecate mysql* names" https://jira.mariadb.org/browse/MDEV-29582
it'll be useful to get native
mariadb
command support in wp-cli.