dianagaby2002 Posted September 22, 2015 Share Posted September 22, 2015 Warning: mysql_connect(): The server requested authentication method unknown to the client [mysql_old_password] in mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error()); It worked yesterday... Quote Link to comment https://forums.phpfreaks.com/topic/298266-cannot-connect-to-serverxampp-55/ Share on other sites More sharing options...
requinix Posted September 22, 2015 Share Posted September 22, 2015 So what changed since yesterday? Because if it worked yesterday and not today then something did change. Quote Link to comment https://forums.phpfreaks.com/topic/298266-cannot-connect-to-serverxampp-55/#findComment-1521357 Share on other sites More sharing options...
dianagaby2002 Posted September 23, 2015 Author Share Posted September 23, 2015 So what changed since yesterday? Because if it worked yesterday and not today then something did change. Good question...I even reinstalled it and still...But my code is ok because it's the same I used 1 week ago...hmm Quote Link to comment https://forums.phpfreaks.com/topic/298266-cannot-connect-to-serverxampp-55/#findComment-1521384 Share on other sites More sharing options...
QuickOldCar Posted September 23, 2015 Share Posted September 23, 2015 Old 16 character long password hash? Did php or mysql get updated? http://dev.mysql.com/doc/refman/5.7/en/set-password.html SET PASSWORD FOR 'username'@'localhost' = PASSWORD('thepassword') Basically you need to set the password again You can look in my.cnf and comment out this line, restart the server old-passwords = 1 Quote Link to comment https://forums.phpfreaks.com/topic/298266-cannot-connect-to-serverxampp-55/#findComment-1521405 Share on other sites More sharing options...
dianagaby2002 Posted September 24, 2015 Author Share Posted September 24, 2015 Old 16 character long password hash? Did php or mysql get updated? http://dev.mysql.com/doc/refman/5.7/en/set-password.html SET PASSWORD FOR 'username'@'localhost' = PASSWORD('thepassword') Basically you need to set the password again You can look in my.cnf and comment out this line, restart the server old-passwords = 1 #1133 - Can't find any matching row in the user table And I don't have my.cnf file Quote Link to comment https://forums.phpfreaks.com/topic/298266-cannot-connect-to-serverxampp-55/#findComment-1521460 Share on other sites More sharing options...
dianagaby2002 Posted September 24, 2015 Author Share Posted September 24, 2015 Which XAMPP version has a PHP that accepts this syntax: mysql_connect(); Quote Link to comment https://forums.phpfreaks.com/topic/298266-cannot-connect-to-serverxampp-55/#findComment-1521462 Share on other sites More sharing options...
QuickOldCar Posted September 24, 2015 Share Posted September 24, 2015 (edited) As of right now all should as the latest XAMPP uses php version 5.6.12, in future versions of php mysql_* functions will be gone, right now are deprecated. Use mysqli_* or pdo I doubt it's your issue, save your database and try a reinstall. You can copy your databases inside the mysql folder directly in the application, then place them back after reinstall. Edited September 24, 2015 by QuickOldCar Quote Link to comment https://forums.phpfreaks.com/topic/298266-cannot-connect-to-serverxampp-55/#findComment-1521463 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.