change to empty password
This commit is contained in:
parent
681e43ba81
commit
227c8bbcf0
@ -3,8 +3,5 @@ go:
|
|||||||
- 1.15.x
|
- 1.15.x
|
||||||
env:
|
env:
|
||||||
- GO111MODULE=on
|
- 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 ./...
|
script: go test ./...
|
||||||
|
|||||||
@ -3,7 +3,7 @@ services:
|
|||||||
mysql:
|
mysql:
|
||||||
image: 'mysql:5.7'
|
image: 'mysql:5.7'
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: my-secret-pw
|
MYSQL_ALLOW_EMPTY_PASSWORD: 1
|
||||||
TZ: Asia/shanghai
|
TZ: Asia/shanghai
|
||||||
command:
|
command:
|
||||||
[
|
[
|
||||||
|
|||||||
@ -11,7 +11,7 @@ services:
|
|||||||
mysql:
|
mysql:
|
||||||
image: 'mysql:5.7'
|
image: 'mysql:5.7'
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: my-secret-pw
|
MYSQL_ALLOW_EMPTY_PASSWORD: 1
|
||||||
TZ: Asia/shanghai
|
TZ: Asia/shanghai
|
||||||
command:
|
command:
|
||||||
[
|
[
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
Mysql:
|
Mysql:
|
||||||
host: 'localhost'
|
host: 'localhost'
|
||||||
user: 'root'
|
user: 'root'
|
||||||
password: 'my-secret-pw'
|
password: ''
|
||||||
port: '3306'
|
port: '3306'
|
||||||
|
|
||||||
TransCronInterval: 10 # 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮重试处理,包括prepared中的任务和commited的任务
|
TransCronInterval: 10 # 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮重试处理,包括prepared中的任务和commited的任务
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user