shell> mysql Client does not support authentication protocol requested by server; consider upgrading MySQL clientTo solve this problem, you should use one of the following approaches: [list] [*]Upgrade all client programs to use a 4.1.1 or newer client library. [/*][*]When connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password. [/*][*]Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the [code]SET PASSWORD[/code] statement and the [code]OLD_PASSWORD()[/code] function:
mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');Alternatively, use [code]UPDATE[/code] and [code]FLUSH PRIVILEGES[/code]: mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
[/*][*]Tell the server to use the older password hashing algorithm:
[list=1]
mysql> SELECT Host, User, Password FROM mysql.user -> WHERE LENGTH(Password) > 16;For each account record displayed by the query, use the [code]Host[/code] and [code]User[/code] values and assign a password using the [code]OLD_PASSWORD()[/code] function and either [code]SET PASSWORD[/code] or [code]UPDATE[/code], as described earlier. [/*][/list]
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有