Authentication with old password no longer supported, use 4.1 style passwords

前端 未结 9 625
孤城傲影
孤城傲影 2020-11-29 06:06

I have my website with hostgator and I want to access mysql database with C# windows application but when I tried to connect got this message:

\"Auth

9条回答
  •  渐次进展
    2020-11-29 06:34

    I just solved my problem just like this:

    1) Connect to the db with mysql workbench (select the "use old auth" and "send pass in cleartext"

    2) Using the workbench, I ran the following several times (because it kept saying '0 rows affected'): (also change userID and password to your proper stuff)

    SET SESSION old_passwords=0; 
    SET PASSWORD FOR userID=PASSWORD('password');
    
    SET SESSION old_passwords=false; 
    SET PASSWORD FOR userID=PASSWORD('password');
    

    3) Now go back to your app and it should run...

    That is how I did it at least. I am using IX mysql and they do use old auth on their server so you must do something on your end...

提交回复
热议问题