Error executing the PASSWORD function in MYSQL SERVER (SQL SYNTAX ERROR 1064)

1

Error executing the PASSWORD function in MYSQL SERVE

I have the following query:

SELECT * 
FROM users 
WHERE login = 'FABIO' 
  AND pwd = PASSWORD('2018') 
LIMIT 0, 50000

You're giving this error:

  

Error Code: 1064. You have an error in your SQL syntax; check the   manual that corresponds to your MySQL server version for the right   syntax to use near

    
asked by anonymous 13.09.2018 / 15:39

1 answer

1

Fabio, take a look at this link:

link

See what your version of MySQL Server is, since from 8.0.11 this function is no longer available.

In another version of MySQL your query would work perfectly.

    
14.09.2018 / 14:03