Where is the syntax error in my SQL statement?
mysql> grant all privileges on blog_demo_com.* to 'wordpress'@'localhost' identified by 'wordpress#demo';
ERROR 1064 (42000): 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 'wordpress#demo'' at line 1
mysql>
I checked my SQL statement I really cannot find the issue.
EDIT-01
my MySQL version:
mysql Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)