Score:0

Unknown MySQL syntax error during the WordPress installation

bd flag

I'm trying to install Wordpress on my local server according to instruction described on this page

And now I'm stuck on this step:

GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password';

Tried this command replacing 'password' with my actual password, but MySQL complains about an extra apostrophe at the end of a sentence, but I can't find any mistake.

mysql> GRANT ALL ON wordpress.* TO 'wp_admin'@'localhost' IDENTIFIED BY 'wordpress1sthebest';

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 'wordpress1sthebest'' at line 1

Tried to run it also in phpMyAdmin, here is what i've got

Please help

tsc_chazz avatar
vn flag
Think the entire `IDENTIFIED BY 'password'` is extraneous. Try just `GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost';`
ua flag
It is not extraneous. Instead, the syntax has changed.
tsc_chazz avatar
vn flag
To be honest, I'd never seen the older syntax so I was assuming that the user was already created... I should have checked the instructions page, I guess.
Score:0
ua flag

Newer versions of MySQL no longer allow that syntax. It is now two steps:

CREATE USER ... IDENTIFIED BY ...;
GRANT ... TO ...;

Is there a newer version of WP?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.