up(ver): update version

This commit is contained in:
cnphpbb
2025-01-16 15:00:58 +08:00
parent 811252f08a
commit b6378e9bdc
7 changed files with 2156 additions and 4 deletions
+1 -1
View File
@@ -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
File diff suppressed because it is too large Load Diff
+10
View 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;