なあ、sql考えた奴絶対頭おかしくないか?ユーザ作るのに
GRANT ALL PRIVILEGES ON *.* TO user@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
だぞ?
GRANT ALL PRIVILEGES ON *.* TO user@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
長くないか?

useradd userじゃダメなのか?useradd userでいいだろ?だろ?だろ?だろ?