You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julien Schmidt edited this page Oct 17, 2013
·
6 revisions
What is old_passwords?
With MySQL version 4.1 (published in 2004!) came a protocol change, which introduced a more secure password authentication.
The variable old_password was added, which enables legacy support for the old password authentication but disables the new, more secure one.
The old password authentication uses a very weak hashing which is why it is considered insecure. You should not use it, if you don't need legacy support!
Because it is insecure and deprecated Go-MySQL-Driver did not support this old password authentication system until version 1.1.
Starting with Go-MySQL-Driver version 1.1 you can use the old authentication system explicitly by adding allowOldPasswords=1 to your DSN.
How do I disable it?
Set old_passwords to false in your my.cnf (my.ini on Windows), MySQL's configuration file.
On Linux you will find this file at /etc/my.cnf.
The var old_passwords belongs to the mysqld section, if you can't find it there, just add it: