Fixed missing db creation lines in documentation

This commit is contained in:
Mario Voigt 2020-08-01 15:53:13 +02:00
parent 3a437eb0b5
commit 2026826bff

View File

@ -58,6 +58,24 @@ apt-get install jq
#Install MariaDB + Configure it #Install MariaDB + Configure it
apt-get install mariadb-server 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/*/ /*this table is a merge of /smartlock/; /smartlock/config/ and /smartlock/advanced/config/*/
CREATE TABLE IF NOT EXISTS Smartlock CREATE TABLE IF NOT EXISTS Smartlock