Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password]
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
Run Code Online (Sandbox Code Playgroud)
尝试使用PHP本地服务器上的脚本连接到 Hostgator 上的 MySQL 数据库服务器时出现上述错误。我知道这是一个密码散列问题,通常在 MySQL 4.1 之前和 MySQL 4.1+ 之间。
我已经按照我在此处找到的说明更改了我的本地服务器以使用 old_password 。
改成16位hash后,还是连接不上,报错信息还是一样。更重要的是,我无法再登录到phpmyadmin. 我XAMPP在windows上用。请就如何解决这些问题提出任何建议?
我配置了WAMP在不同机器上运行的两台服务器以进行主-主复制。我正在linksys为网络使用路由器。我创建了一个无线网络,但其中一个服务器盒没有,WIFI所以我使用电缆将其连接到路由器。配置好之后,好像一切正常,但是服务器之间好像没有作为slave相互连接。下面是服务器状态。
Variable Value
Slave_IO_State: Connecting to master
Master_Host: 192.168.1.100
Master_User: master
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 95849
Relay_Log_File: Chibuzo-PC-relay-bin.000001
Relay_Log_Pos : 4
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: Connecting
Slave_SQL_Running: Yes
Replicate_Do_DB: ticket
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter 0
Exec_Master_Log_Pos: 95849
Relay_Log_Space: 107
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master:
Run Code Online (Sandbox Code Playgroud)
在 IP 地址为 192.168.1.102 的服务器 1 上运行以下查询,得到以下结果
SELECT user, host FROM mysql.user WHERE Repl_slave_priv = …Run Code Online (Sandbox Code Playgroud)