Reputation: 7133
when I tried to restore all database dump which is in 5.0 version to 5.6 version, it got restored and after that when I tried to reconnect, am getting the following error
ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol ref used (client option 'secure_auth' enabled)
..
I have tried adding the following lines in My.ini and restarted the service,but the issue persist till.
skip-grant-tables
The following link says its a bug in MYSQL.
Do anyone have any fixes for this solution?
Upvotes: 9
Views: 35853
Reputation: 2206
On the command line, use something like the following, if you have no choice...
mysql -uTheUseerNAme -pThePassword DbName -h HostName --skip-secure-auth
Hope this helps someone, as this was my problem connecting from a Linux box
Upvotes: 13
Reputation: 1
I had similar issue, but using MAC Terminal connecting remote MySQL db.
Solution: I create a new user with less special characters, that problem disappeared.
Upvotes: 0
Reputation: 1241
Using the way like rayVenues but you should change your password connection, it will work fine :)
Upvotes: 0
Reputation: 398
Fixed as of MySQL Workbench 6.0.7, and here's the changelog entry:
A new option was added in the connection settings "Advanced" tab for disabling the secure_auth (useLegacyAuth) option, to optionally connect to legacy systems.
Upvotes: 2
Reputation: 1295
I've got same problem in Centos 7 with MySQL. If i try to connect by mysql client:
ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)
Bu in my case if I specify:
--skip-secure-auth
it cause error message:
ERROR 1275 (HY000): Server is running in --secure-auth mode, but 'root'@'localhost' has a password in the old format; please change the password to the new format
It work only when i specify:
in /etc/my.cnf
[mysqld]
...
secure_auth=false
and then restart mysqld
Upvotes: 1
Reputation: 2002
For MySQL Workbench 6.08 in the Manage Server Connections, Connection tab, Advanced sub-tab you must check the box 'Use the old authentication protocol.'
Upvotes: 1
Reputation: 4451
Best thing to do is to reset your user password to the new hashing algorithm
With workbench: http://blogs.technicise.com/change-root-password-in-mysql-workbench/
Command line: http://www.cyberciti.biz/faq/mysql-change-root-password/
Upvotes: 3
Reputation: 364
Use this workaround for MySQLWorkBench 6.0 at the Manage Server Connections Dialog Box:
Add useLegacyAuth=1 in the Advanced options box in the connection settings dialog.
Upvotes: 25