diff --git a/conf.sample.json b/conf.sample.json index db5e5fc5..cb375061 100644 --- a/conf.sample.json +++ b/conf.sample.json @@ -14,7 +14,7 @@ {"name":"second","path":"__DIR__/videos2"} ], "db": { - "host": "localhost", + "host": "127.0.0.1", "user": "majesticflame", "password": "", "database": "ccio", diff --git a/sql/user.sql b/sql/user.sql index 97230c75..fa1020f8 100644 --- a/sql/user.sql +++ b/sql/user.sql @@ -4,8 +4,8 @@ -- Create Database CREATE DATABASE IF NOT EXISTS `ccio`; -- Create User for Database -CREATE USER 'majesticflame'@'localhost' IDENTIFIED BY ''; +CREATE USER 'majesticflame'@'127.0.0.1' IDENTIFIED BY ''; -- Grant Permissions to User for Database -GRANT ALL PRIVILEGES ON ccio.* TO 'majesticflame'@'localhost'; +GRANT ALL PRIVILEGES ON ccio.* TO 'majesticflame'@'127.0.0.1'; -- Refresh SQL Authorization FLUSH PRIVILEGES;