diff options
Diffstat (limited to 'srcs')
| -rwxr-xr-x | srcs/mysql/entrypoint.sh | 1 | ||||
| -rw-r--r-- | srcs/mysql/wordpress.sql | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/srcs/mysql/entrypoint.sh b/srcs/mysql/entrypoint.sh index 0988bbb..4eb1f19 100755 --- a/srcs/mysql/entrypoint.sh +++ b/srcs/mysql/entrypoint.sh @@ -19,6 +19,7 @@ GRANT ALL PRIVILEGES ON wordpress.* TO 'root'@'%' IDENTIFIED BY 'root'; FLUSH PRIVILEGES; EOF + echo '-----------SETUP WORDPRESS-----------' /usr/bin/mysqld --user=root --datadir=/var/lib/mysql --bootstrap < /wordpress.sql fi diff --git a/srcs/mysql/wordpress.sql b/srcs/mysql/wordpress.sql index b7bed79..94e793a 100644 --- a/srcs/mysql/wordpress.sql +++ b/srcs/mysql/wordpress.sql @@ -7,6 +7,8 @@ -- Server version: 10.4.15-MariaDB-log -- PHP Version: 7.3.23 +USE wordpress; + SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; |
