Quote username with hyphen

Newer versions seem to require quotes for usernames with hyphens...
This commit is contained in:
Bernhard Fröhlich 2016-01-08 18:12:32 +01:00
parent 7a213874f2
commit 3c356e876c

View file

@ -29,7 +29,7 @@ Setup
- Connect to your MySQL server with an administrative user and create a database for CATS: - Connect to your MySQL server with an administrative user and create a database for CATS:
CREATE DATABASE cats_db; CREATE DATABASE cats_db;
- Create a user for CATS to access the database: - Create a user for CATS to access the database:
CREATE USER cats-user IDENTIFIED BY '<a password>'; CREATE USER 'cats-user' IDENTIFIED BY '<a password>';
- Grant the necessary user rights. These are a bit more than the absolute minimum: - Grant the necessary user rights. These are a bit more than the absolute minimum:
GRANT DELETE, INSERT, SELECT, UPDATE ON cats_db.* TO cats_user; GRANT DELETE, INSERT, SELECT, UPDATE ON cats_db.* TO cats_user;
- Change the database context to the newly created cats_db: - Change the database context to the newly created cats_db: