ginerjm Posted December 15, 2023 Share Posted December 15, 2023 Suddenly my old php code is having a problem when I try to run a mysql query that still uses the password function. I know I am way out of date but this code was working fine until the last week or so. Do I have some coding tasks ahead of me? Quote Link to comment https://forums.phpfreaks.com/topic/317540-is-the-mysql-password-function-no-longer-valid/ Share on other sites More sharing options...
requinix Posted December 15, 2023 Share Posted December 15, 2023 "A problem"? Quote Link to comment https://forums.phpfreaks.com/topic/317540-is-the-mysql-password-function-no-longer-valid/#findComment-1613561 Share on other sites More sharing options...
ginerjm Posted December 15, 2023 Author Share Posted December 15, 2023 Yes - I know I am out of date and it is something I should have handled long ago. That said - Is my question valid? The PASSWORD function is no longer valid? Quote Link to comment https://forums.phpfreaks.com/topic/317540-is-the-mysql-password-function-no-longer-valid/#findComment-1613562 Share on other sites More sharing options...
Solution Barand Posted December 15, 2023 Solution Share Posted December 15, 2023 Quote Link to comment https://forums.phpfreaks.com/topic/317540-is-the-mysql-password-function-no-longer-valid/#findComment-1613566 Share on other sites More sharing options...
ginerjm Posted December 15, 2023 Author Share Posted December 15, 2023 Guess I have some work to do..... Quote Link to comment https://forums.phpfreaks.com/topic/317540-is-the-mysql-password-function-no-longer-valid/#findComment-1613572 Share on other sites More sharing options...
gizmola Posted December 20, 2023 Share Posted December 20, 2023 On 12/15/2023 at 12:14 PM, ginerjm said: Guess I have some work to do..... I have a note that the reverse engineered underlying code that will work with 8.x is this: SELECT CONCAT('*', UPPER(SHA1(UNHEX(SHA1('password'))))); 1 Quote Link to comment https://forums.phpfreaks.com/topic/317540-is-the-mysql-password-function-no-longer-valid/#findComment-1613680 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.