From 101a87f936623fa507e76e8f5c89f22a313fc312 Mon Sep 17 00:00:00 2001 From: Maximilian Tagher Date: Thu, 10 Mar 2022 09:34:08 -0500 Subject: [PATCH] Add @localhost to last MySQL command (#296) It's been a long time since I remembered MySQL user naming convention stuff, but, just empirically I get the following error following the README instructions: ``` mysql -u root ``` ``` mysql> GRANT ALL ON esqutest.* TO 'travis'; ERROR 1410 (42000): You are not allowed to create a user with GRANT mysql> GRANT ALL ON esqutest.* TO 'travis'@'localhost'; Query OK, 0 rows affected (0.00 sec) ``` MySQL version: ``` ~/D/C/H/esqueleto> mysql --version 12:38:37 mysql Ver 8.0.22 for osx10.15 on x86_64 (Homebrew) ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa62333..479bfa6 100644 --- a/README.md +++ b/README.md @@ -488,5 +488,5 @@ user which can access it: mysql> CREATE DATABASE esqutest; mysql> CREATE USER 'travis'@'localhost'; mysql> ALTER USER 'travis'@'localhost' IDENTIFIED BY 'esqutest'; -mysql> GRANT ALL ON esqutest.* TO 'travis'; +mysql> GRANT ALL ON esqutest.* TO 'travis'@'localhost'; ```