2when connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.
使用以前建立的賬號連接,對于在新的認(rèn)證協(xié)議下建立的賬戶就不行了
3reset 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 set password statement and the old_password() function: mysql> set password for
alternatively, use update and flush privileges: 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.
這是一個(gè)不錯(cuò)的辦法,新建立的賬號采用老式的加密協(xié)議
4tell the server to use the older password hashing algorithm:
start mysqld with the --old-passwords option.
這樣新認(rèn)證協(xié)議的優(yōu)點(diǎn)就沒法使用了
5assign an old-format password to each account that has had its password updated to the longer 4.1 format. you can identify these accounts with the following query: mysql> select host, user, password from mysql.user
-> where length(password) > 16;
for each account record displayed by the query, use the host and user values and assign a password using the old_password() function and either set password or update, as described earlier.