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:
```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 `<datasources>` element:
<security>
<user-name>xcs</user-name>
<password>xcs</password>
</security>
</security>
</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