Giter Site home page Giter Site logo

Error on MySQL 8 about wp-cli-tests HOT 7 CLOSED

wp-cli avatar wp-cli commented on May 26, 2024 1
Error on MySQL 8

from wp-cli-tests.

Comments (7)

dotancohen avatar dotancohen commented on May 26, 2024 1

The problem is that MySQL client 8 cannot dump from MySQL server 5.x. The bug is filed here:
https://bugs.mysql.com/bug.php?id=89825

The workaround is to disable column statistics, which relies on 8.x:

$ wp db export --column-statistics=0

from wp-cli-tests.

dotancohen avatar dotancohen commented on May 26, 2024

I can confirm this issue on another Mac:

$ php -v | grep built
PHP 7.1.20 (cli) (built: Jul 20 2018 10:27:12) ( NTS )

$ wp --version
WP-CLI 1.5.1

// From" About This Mac" dialogue:
  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro12,1
  Processor Name:	Intel Core i5
  Processor Speed:	2.7 GHz
  Number of Processors:	1
  Total Number of Cores:	2
  L2 Cache (per Core):	256 KB
  L3 Cache:	3 MB
  Memory:	8 GB
  Boot ROM Version:	MBP121.0177.B00
  SMC Version (system):	2.28f7

from wp-cli-tests.

swissspidy avatar swissspidy commented on May 26, 2024

Have you tried running mysql_upgrade? This should make sure the database is properly upgraded and that the needed tables are created.

from wp-cli-tests.

swissspidy avatar swissspidy commented on May 26, 2024

There also seem to be some incompatibilities with MySQL 8 and PHP 7.2.8. A possible workaround for now — if mysql_upgrade didn't help — is adding this to your MySQL config:

[mysqld]
default-authentication-plugin=mysql_native_password

from wp-cli-tests.

wojsmol avatar wojsmol commented on May 26, 2024

@swissspidy Other option is something like this

ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

from wp-cli-tests.

jacklowrie avatar jacklowrie commented on May 26, 2024

I'm working on this in #71

from wp-cli-tests.

schlessera avatar schlessera commented on May 26, 2024

Closed via #71

from wp-cli-tests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.