Support » Developing with WordPress » wp-cli Character set ” problem

  • 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 ”?

    • This topic was modified 3 months, 3 weeks ago by  Steven Stern. Reason: fixed title
  • You must be logged in to reply to this topic.