mysql strict mode.
This commit is contained in:
parent
dea09d49e8
commit
4b0f6960a8
1 changed files with 2 additions and 2 deletions
|
|
@ -116,12 +116,12 @@ jobs:
|
||||||
name: Create MySQL/MariaDB user and test databases
|
name: Create MySQL/MariaDB user and test databases
|
||||||
command: |
|
command: |
|
||||||
mysql -h 127.0.0.1 -P 50902 -u root -pjet -e "grant all privileges on *.* to 'jet'@'%';"
|
mysql -h 127.0.0.1 -P 50902 -u root -pjet -e "grant all privileges on *.* to 'jet'@'%';"
|
||||||
mysql -h 127.0.0.1 -P 50902 -u root -pjet -e "set global sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';"
|
mysql -h 127.0.0.1 -P 50902 -u root -pjet -e "set global sql_mode = 'STRICT_ALL_TABLES,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';"
|
||||||
mysql -h 127.0.0.1 -P 50902 -u jet -pjet -e "create database test_sample"
|
mysql -h 127.0.0.1 -P 50902 -u jet -pjet -e "create database test_sample"
|
||||||
mysql -h 127.0.0.1 -P 50902 -u jet -pjet -e "create database dvds2"
|
mysql -h 127.0.0.1 -P 50902 -u jet -pjet -e "create database dvds2"
|
||||||
|
|
||||||
mysql -h 127.0.0.1 -P 50903 -u root -pjet -e "grant all privileges on *.* to 'jet'@'%';"
|
mysql -h 127.0.0.1 -P 50903 -u root -pjet -e "grant all privileges on *.* to 'jet'@'%';"
|
||||||
mysql -h 127.0.0.1 -P 50903 -u root -pjet -e "set global sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';"
|
mysql -h 127.0.0.1 -P 50903 -u root -pjet -e "set global sql_mode = 'STRICT_ALL_TABLES,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';"
|
||||||
mysql -h 127.0.0.1 -P 50903 -u jet -pjet -e "create database test_sample"
|
mysql -h 127.0.0.1 -P 50903 -u jet -pjet -e "create database test_sample"
|
||||||
mysql -h 127.0.0.1 -P 50903 -u jet -pjet -e "create database dvds2"
|
mysql -h 127.0.0.1 -P 50903 -u jet -pjet -e "create database dvds2"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue