GRANT ALL ON *.* TO demoemployee@'1.5.6.4' IDENTIFIED BY 'my_password'
Error: 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 'IDENTIFIED BY 'my_password'' at line 1
I don't see any issue with the syntax above but still, it's not working and adding an extra '
on the end of my query.
I've tried this on my MySQL server 8.xx and on online tools like this: https://en.rakko.tools/tools/36/
I've also tried few other queries but couldn't solve.
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'my_password'
How Should I resolve this?