• On one of our servers, WP-CLI seems to be convinced that the character set must be an empty string.

    $ wp db cli
    mysql: Character set '' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
    ERROR 2019 (HY000): Can't initialize character set  (path: /usr/share/mysql/charsets/)

    The database (MariaDB 10) has no problem connecting, nor does WordPress – the website is running fine. The character set is set to utf8mb4 across the board, including in wp-config.php. Why would it think it’s ”?

  • The topic ‘wp-cli Character set ” problem’ is closed to new replies.