Commit 48e7d92a authored by Administrator's avatar Administrator

Fixes user creation in SQL

The user creation defined in the SQL files was valid for MySQL 5, but
it is no longer supported by MySQL 8+. This commit fixes this error
by using a syntaxis compatible with MySQL 8+.
parent 26690b10
...@@ -31,7 +31,8 @@ CREATE TABLE `Pet` ( ...@@ -31,7 +31,8 @@ CREATE TABLE `Pet` (
-- --
-- User creation -- User creation
-- --
GRANT ALL PRIVILEGES ON xcs.* TO xcs@localhost IDENTIFIED BY 'xcs'; CREATE USER IF NOT EXISTS xcs@localhost IDENTIFIED BY 'xcs';
GRANT ALL PRIVILEGES ON xcs.* TO xcs@localhost;
FLUSH PRIVILEGES; FLUSH PRIVILEGES;
-- --
......
...@@ -31,5 +31,6 @@ CREATE TABLE `Pet` ( ...@@ -31,5 +31,6 @@ CREATE TABLE `Pet` (
-- --
-- User creation -- User creation
-- --
GRANT ALL PRIVILEGES ON xcssampletest.* TO xcs@localhost IDENTIFIED BY 'xcs'; CREATE USER IF NOT EXISTS xcs@localhost IDENTIFIED BY 'xcs';
GRANT ALL PRIVILEGES ON xcssampletest.* TO xcs@localhost;
FLUSH PRIVILEGES; FLUSH PRIVILEGES;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment