Quote username with hyphen

Newer versions seem to require quotes for usernames with hyphens...
release
Bernhard Fröhlich 8 years ago
parent 7a213874f2
commit 3c356e876c

@ -29,7 +29,7 @@ Setup
- Connect to your MySQL server with an administrative user and create a database for CATS:
CREATE DATABASE cats_db;
- 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 DELETE, INSERT, SELECT, UPDATE ON cats_db.* TO cats_user;
- Change the database context to the newly created cats_db:

Loading…
Cancel
Save