For earlier versions of MySQL, you can combine the user creation and granting privileges into a single statement, but the IDENTIFIED BY clause needs to be used correctly.
前々回から何回かに分けて、 MySQLのユーザー認証について説明しています。 「第17回MySQLのユーザー管理について [その1⁠]⁠」では、 「⁠ホスト名⁠」⁠、 「⁠ユーザー⁠」⁠、 「⁠パスワード」 についてと、 mysql. user テーブルについて説明しました。