Fixed missing db creation lines in documentation
This commit is contained in:
parent
3a437eb0b5
commit
2026826bff
18
README.md
18
README.md
@ -58,6 +58,24 @@ apt-get install jq
|
||||
#Install MariaDB + Configure it
|
||||
apt-get install mariadb-server
|
||||
```
|
||||
|
||||
|
||||
```
|
||||
#Create a new database
|
||||
mysql -u root
|
||||
|
||||
CREATE DATABASE nuki;
|
||||
CREATE USER 'nuki'@'localhost' IDENTIFIED BY 'YOURPASSWORD';
|
||||
CREATE USER 'nuki'@'%' IDENTIFIED BY 'YOURPASSWORD';
|
||||
SELECT * FROM mysql.user;
|
||||
USE nuki;
|
||||
GRANT ALL PRIVILEGES ON `nuki`.* TO `nuki`@`localhost`;
|
||||
GRANT ALL PRIVILEGES ON `nuki`.* TO `nuki`@`%`;
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
\q
|
||||
```
|
||||
|
||||
```
|
||||
/*this table is a merge of /smartlock/; /smartlock/config/ and /smartlock/advanced/config/*/
|
||||
CREATE TABLE IF NOT EXISTS Smartlock
|
||||
|
Loading…
Reference in New Issue
Block a user