Fixed missing db creation lines in documentation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user