change to empty password

This commit is contained in:
yedongfu 2021-07-16 10:29:10 +08:00
parent 681e43ba81
commit 227c8bbcf0
4 changed files with 4 additions and 7 deletions

View File

@ -3,8 +3,5 @@ go:
- 1.15.x
env:
- GO111MODULE=on
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('my-secret-pw') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -pmy-secret-pw
- sudo service mysql restart
script: go test ./...

View File

@ -3,7 +3,7 @@ services:
mysql:
image: 'mysql:5.7'
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_ALLOW_EMPTY_PASSWORD: 1
TZ: Asia/shanghai
command:
[

View File

@ -11,7 +11,7 @@ services:
mysql:
image: 'mysql:5.7'
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_ALLOW_EMPTY_PASSWORD: 1
TZ: Asia/shanghai
command:
[

View File

@ -1,7 +1,7 @@
Mysql:
host: 'localhost'
user: 'root'
password: 'my-secret-pw'
password: ''
port: '3306'
TransCronInterval: 10 # 单位秒 当事务等待这个时间之后还没有变化则进行一轮重试处理包括prepared中的任务和commited的任务