@@ -54,7 +54,7 @@ mysql_secure_installation - set password for root
Create user and database
MariaDB [(none)]>
-CREATE DATABASE `stat` DEFAULT utf8mb4 CHARACTER SET MATCH utf8mb4_unicode_ci;
+CREATE DATABASE IF NOT EXISTS `stat` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
grant all privileges to stat.* stat@localhost, identified with a "password";
reset privileges;
go out
@@ -53,8 +53,8 @@ mysql_secure_installation - утсановить пароль для root
Создать юзера и базу данных
-MariaDB [(none)]>
-CREATE DATABASE `stat` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
+MariaDB [(none)]>
grant all privileges on stat.* to stat@localhost identified by 'password';
flush privileges;
quit