@Gokilla

Ошибки авторизации phpmyadmin?

Есть такое дело ввожу root пароль пустой, mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password] и еще mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
  • Вопрос задан
  • 32414 просмотров
Пригласить эксперта
Ответы на вопрос 4
RomaZveR
@RomaZveR
CEO AlertMoney, PHP/Golang Developer
В восьмом мускуле сменился метод авторизации
https://bugs.php.net/bug.php?id=76243
Тут решения на выбор:
https://stackoverflow.com/questions/49948350/phpmy...
Ответ написан
Пользователь root? Ты его только установил? Попробуй root root как логин и пароль.
Ответ написан
@LafTomas
начинающий веб-дизайнер
можно по аналогии с mysqli_connect('127.0.0.1','root','','DBName');
где
root- ты
DBName-название БД
Ответ написан
Комментировать
@BlackRaver
C:\Windows\system32>c:\Server\bin\mysql-8.0\bin\mysql.exe -u root

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 8.0.19 MySQL Community Server - GPL

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> ALTER USER 'root'@'localhost'
-> IDENTIFIED WITH mysql_native_password
-> BY 'pass';
Query OK, 0 rows affected (0.17 sec)

pass - ваш пароль.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы