admin管理员组文章数量:1131184
I'm trying to run 'wp --search-replace' within a vhost webroot on an apache host.
The operation returns:
Please check that the `mysqli` PHP extension is installed and enabled.
If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
However, this host has mariadb installed and running. And PHP can connect to it.
I have another vhost running a WordPress site on the same host. The other site is functioning perfectly and has no trouble connecting to mysql.
Why is wp-cli failing to connect to the database?
I'm trying to run 'wp --search-replace' within a vhost webroot on an apache host.
The operation returns:
Please check that the `mysqli` PHP extension is installed and enabled.
If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
However, this host has mariadb installed and running. And PHP can connect to it.
I have another vhost running a WordPress site on the same host. The other site is functioning perfectly and has no trouble connecting to mysql.
Why is wp-cli failing to connect to the database?
Share Improve this question asked Dec 5, 2023 at 6:28 bobbob 2491 gold badge6 silver badges16 bronze badges1 Answer
Reset to default 0There was nothing wrong with the host configuration.
The php version being used by the shell was different from the php version that the webserver passes requests to.
The problem was solved by installing a mysql extension for the php version that the shell runs.
本文标签: wp cliwpcli searchreplace fails reports that mysqli needs to be installed
版权声明:本文标题:wp cli - wpcli search-replace fails; reports that mysqli needs to be installed 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736729022a1949890.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论