Skip to content

Instantly share code, notes, and snippets.

@KelvinRonaldo
Created August 17, 2021 18:47
Show Gist options
  • Select an option

  • Save KelvinRonaldo/1be1b10029eda0fa9634d9f4e151538a to your computer and use it in GitHub Desktop.

Select an option

Save KelvinRonaldo/1be1b10029eda0fa9634d9f4e151538a to your computer and use it in GitHub Desktop.
MySQL Errors

GABARITO DE ERROS MYSQL 8+

SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client in ...

  • MySQL 8+ usa auth_socket para autenticação. Necessário trocar para o antigo
ALTER USER '<username>'@'<host>' IDENTIFIED WITH mysql_native_password BY '<password>';

Uncaught PDOException: could not find driver in ...

  • Driver do PDO da versão de PHP não está instalado.
sudo apt-get install php7.X-mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment