Commit 7acab75f authored by Administrator's avatar Administrator

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.
parent 1fb6f62c
...@@ -58,11 +58,11 @@ commands: ...@@ -58,11 +58,11 @@ commands:
```sql ```sql
CREATE DATABASE xcs; 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; FLUSH PRIVILEGES;
CREATE DATABASE xcssampletest; 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; FLUSH PRIVILEGES;
``` ```
...@@ -72,11 +72,11 @@ tests) you can also execute: ...@@ -72,11 +72,11 @@ tests) you can also execute:
```sql ```sql
DROP TABLE IF EXISTS `User`; DROP TABLE IF EXISTS `User`;
CREATE TABLE `User` ( CREATE TABLE `User` (
`role` varchar(5) NOT NULL, `role` varchar(5) NOT NULL,
`login` varchar(100) NOT NULL, `login` varchar(100) NOT NULL,
`password` varchar(32) NOT NULL, `password` varchar(32) NOT NULL,
PRIMARY KEY (`login`) PRIMARY KEY (`login`)
); );
DROP TABLE IF EXISTS `Pet`; DROP TABLE IF EXISTS `Pet`;
...@@ -155,7 +155,7 @@ content to the `<datasources>` element: ...@@ -155,7 +155,7 @@ content to the `<datasources>` element:
<security> <security>
<user-name>xcs</user-name> <user-name>xcs</user-name>
<password>xcs</password> <password>xcs</password>
</security> </security>
</datasource> </datasource>
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment