G
G
Gokilla2018-06-02 05:42:28
PHP
Gokilla, 2018-06-02 05:42:28

phpmyadmin authorization errors?

There is such a thing, I enter the root password is empty, mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password] and also mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roman Terekhin, 2018-06-02
@RomaZveR

In the eighth muscle, the authorization method has changed
https://bugs.php.net/bug.php?id=76243
Here are solutions to choose from:
https://stackoverflow.com/questions/49948350/phpmy...

N
Nikita Khaetsky, 2018-06-02
@ReaZzon

root user? Did you just install it? Try root root as login and password.

T
Tom, 2018-06-02
@LafTomas

it is possible by analogy with where root is DBName is the name of the database mysqli_connect('127.0.0.1','root','','DBName');

B
BlackRaver, 2020-01-17
@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.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question