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

  • Marcus Downing

    (@marcusdowning)


    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 7 months ago by  Steve Stern. Reason: fixed title
  • The topic ‘wp-cli Character set ” problem’ is closed to new replies.