Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 498 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 498 Bytes

Database configuration

Enter the sql/ directory under the project:

cd ./sql
CREATE DATABASE libre_blog;
USE libre_blog;
source ./create_tables.sql;
source ./gen_menus.sql;
source ./gen_roles.sql;
source ./gen_categories.sql;
-- add the administrator to the user table
SET @uuid = UUID();
INSERT INTO `user` (`username`,`password`,`email`,`realname`,`salt`,`role`) VALUES ('bobwood', UPPER(SHA2(CONCAT('bw1234', @uuid),256)), '[email protected]', 'Bob Wood', @uuid, 1);