diff --git a/_config.yml b/_config.yml index d7b46d6..8bbe716 100644 --- a/_config.yml +++ b/_config.yml @@ -205,4 +205,4 @@ future: false # Custom configuration custom-config: blog-services: - service_url: 'http://localhost:5016' \ No newline at end of file + service_url: 'http://localhost:5000' \ No newline at end of file diff --git a/db_scripts/mysql.sql b/db_scripts/mysql.sql new file mode 100644 index 0000000..ce66b43 --- /dev/null +++ b/db_scripts/mysql.sql @@ -0,0 +1,18 @@ +-- Create USER + +-- CREATE USER 'user1'@localhost IDENTIFIED BY 'password1'; + +CREATE USER blog_admin@'%' IDENTIFIED BY 'pass@1234'; + +GRANT ALL PRIVILEGES ON blogDB.* TO blog_admin@'%'; + +SHOW GRANTS FOR blog_admin@'%'; + +FLUSH PRIVILEGES + + +-- Create Counter Table + +-- DROP TABLE PostVisitCounter + +-- create table PostVisitCounter (id INT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, siteid nvarchar(500), postid nvarchar(500), count INT(20), datecreated TIMESTAMP, datemodified TIMESTAMP); \ No newline at end of file