forked from DevOps/deploy.stack
up(ver): update version
This commit is contained in:
@@ -12,7 +12,7 @@ services:
|
||||
TZ: Asia/Shanghai
|
||||
MYSQL_ROOT_PASSWORD: Papa#20140924
|
||||
volumes:
|
||||
- ./mysqldata:/var/lib/mysql/
|
||||
- /data/volumes/n9e/mysqldata:/var/lib/mysql/
|
||||
- ../initsql:/docker-entrypoint-initdb.d/
|
||||
- ./etc-mysql/my.cnf:/etc/my.cnf
|
||||
networks:
|
||||
|
||||
@@ -83,7 +83,7 @@ RSAPassWord = "n9e@n9e!"
|
||||
|
||||
[DB]
|
||||
# postgres: DSN="host=127.0.0.1 port=5432 user=root dbname=n9e_v6 password=1234 sslmode=disable"
|
||||
DSN="root:1234@tcp(mysql:3306)/n9e_v6?charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true"
|
||||
DSN="root:Papa#20140924@tcp(mysql:3306)/n9e_v6?charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true"
|
||||
# enable debug mode or not
|
||||
Debug = false
|
||||
# mysql postgres
|
||||
|
||||
2124
n9e/initsql/a-n9e.sql
Normal file
2124
n9e/initsql/a-n9e.sql
Normal file
File diff suppressed because it is too large
Load Diff
10
n9e/initsql/c-init.sql
Normal file
10
n9e/initsql/c-init.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE USER IF NOT EXISTS 'root'@'127.0.0.1' IDENTIFIED BY '1234';
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' WITH GRANT OPTION;
|
||||
|
||||
CREATE USER IF NOT EXISTS 'root'@'localhost' IDENTIFIED BY '1234';
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
|
||||
|
||||
CREATE USER IF NOT EXISTS 'root'@'%' IDENTIFIED BY '1234';
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
|
||||
|
||||
FLUSH PRIVILEGES;
|
||||
Reference in New Issue
Block a user