From 7acab75f470076392cd9413371f3c243ef86169c Mon Sep 17 00:00:00 2001 From: Miguel Reboiro-Jato Date: Fri, 21 Apr 2017 11:00:48 +0200 Subject: [PATCH] Fixes a bug in the README's database creation queries The database creation queries in the README.md file had a bug, as the ".*" to reference all the tables in the databases was missing. This commit fixes this bug and some minor indentation errors in this file. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9572bf5..bab30ad 100644 --- a/README.md +++ b/README.md @@ -58,11 +58,11 @@ commands: ```sql CREATE DATABASE xcs; -GRANT ALL PRIVILEGES ON xcs TO xcs@localhost IDENTIFIED BY 'xcs'; +GRANT ALL PRIVILEGES ON xcs.* TO xcs@localhost IDENTIFIED BY 'xcs'; FLUSH PRIVILEGES; CREATE DATABASE xcssampletest; -GRANT ALL PRIVILEGES ON xcssampletest TO xcs@localhost IDENTIFIED BY 'xcs'; +GRANT ALL PRIVILEGES ON xcssampletest.* TO xcs@localhost IDENTIFIED BY 'xcs'; FLUSH PRIVILEGES; ``` @@ -72,11 +72,11 @@ tests) you can also execute: ```sql DROP TABLE IF EXISTS `User`; - CREATE TABLE `User` ( - `role` varchar(5) NOT NULL, - `login` varchar(100) NOT NULL, - `password` varchar(32) NOT NULL, - PRIMARY KEY (`login`) +CREATE TABLE `User` ( + `role` varchar(5) NOT NULL, + `login` varchar(100) NOT NULL, + `password` varchar(32) NOT NULL, + PRIMARY KEY (`login`) ); DROP TABLE IF EXISTS `Pet`; @@ -155,7 +155,7 @@ content to the `` element: xcs xcs - + ``` -- 2.18.1