webForumDet fria alternativet

Problem med att ansluta

4 svar · 323 visningar · startad av Qimen

QimenMedlem sedan juni 20015 009 inlägg
#1

Installerade precis MySql 4.1 server och client på min FreeBSD server. Allt verkar funka som det ska och jag kan lägga till användare och skapa databaser. Men så fort jag lägger till ett lösenord på någon användare och försöker ansluta med ex. mysqlfront från en winburk så får jag:

"#1249 - Client does not support authentication protocol requested by server. Consider upgrading MySQL client"

Jag har lagt till att man kan ansluta utifrån ('%') och det funkar sålänge jag inte har något lösenord på användare. Har provat med både mascon, phpmyadmin och mysqlfront.
Vad beror detta på? :(

Jesper TMedlem sedan nov. 20017 144 inlägg
#2

www.mysql.com skrev:

A.2.4 Client does not support authentication protocol error
MySQL 4.1 uses an authentication protocal based on a password hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to a it with an older client may fail with the following message:

shell> mysql
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
To solve this problem you should do one of the following:

Upgrade all client programs to use the 4.1.1 or newer client library.
Use a user account with an old password when connecting from a pre 4.1 client.
Reset the user that needs a pre-4.1 client to use an old password:
mysql> UPDATE user SET Password = OLD_PASSWORD('mypass')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;
Tell the server to use the older password hashing algorithm:
Start mysqld with --old-passwords.
Set the password for all users that has a long password. You can find these users with:
SELECT * FROM mysql.user WHERE LEN(password) > 16;

Bosse168Medlem sedan nov. 20031 018 inlägg
#3

Ingen som kan förklara hur man ska göra steg för steg har samma problem.

Kör MySQL-4.1.7-win.

Bosse168Medlem sedan nov. 20031 018 inlägg
#4

När jag försöker så får jag detta felmeddelande:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that correspons to your MySQL server version for the right syntax to use near '> WHERE Host = 'some_host' AND User = 'some_user'' at line 1

aXizMedlem sedan mars 200484 inlägg
#5

hrrrm. jag får samma äckliga meddelande. men utan att använda pass eller nånting alls. kan över huvud taget inte connecta till mysql utan att få det där meddelandet =((

264 ms totalt · 3 externa anrop · v20260731065814-full.3ab8d573
0 ms — hämta forumlista (cache)
126 ms — hämta statistik (db)
135 ms — hämta tråd, inlägg och bilagor (db)