当前位置:网站首页>Container internal mysql5.7 configuration mode sqlmode + timeout wait_ timeout
Container internal mysql5.7 configuration mode sqlmode + timeout wait_ timeout
2022-06-09 02:44:00 【I senior cat】
docker run -itd --restart=always --name mysql-test-5.7 -p 3307:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7
docker cp ecce28f29499:/etc/mysql/mysql.cnf .
vim mysql.cnf
docker cp mysql.cnf ecce28f29499:/etc/mysql/
docker restart ecce28f29499
[mysqld]
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"Temporary settings sql_mode: navcat
select @@global.sql_mode;
select @@session.sql_mode;
select @@max_allowed_packet;
show variables like 'max_allowed_packet';
-- set @@global.sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
-- set @@session.sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
--
--
--
-- set @@global.sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
-- set @@session.sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
set @@global.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
set @@session.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';Temporary settings Timeout time
SHOW VARIABLES LIKE 'max_connections';
SET GLOBAL max_connections=5000;
show global variables like 'wait_timeout'
SET GLOBAL wait_timeout=6000;边栏推荐
- Period, duration calculation interval
- Calendar time operation
- Basic method for missing data filling (2) -- random forest (missforest) filling
- Greedy method / non 01 knapsack problem
- 杰理之若用户不需要使用所有的按键,其他按键应该如何设置?【篇】
- 动态规划/斐波那契数列
- 贪心法/非01背包问题
- export相关知识
- 飞书要不要做生态?剖析第一家 All in 飞书的独立 SaaS 案例
- Go Technology Daily (June 7, 2022) - go programmer development efficiency artifact summary
猜你喜欢

Karmada v1.2 release: open a new era of full-text search

C#中的反射原理及应用

【编码推流】SRS流媒体服务器安装及使用

Leetcode 713. Subarray double pointers whose product is less than k

Two important influencing factors of togglerowselection() failure

Ccf-csp 201812-4 data center minimum spanning tree

"The original, skillful and vulgar skills of cloud native" -- composition of Volume I of the national new college entrance examination in 2022

Embracing out of hospital prescription drugs, Internet medicine should also "get rid of virtual reality"?

Problems and solutions in using renrenfast

Leetcode 1248. Count "graceful subarray" prefix and
随机推荐
STM32 flash erase crash
Jerry: if the user doesn't need to use all the keys, how should other keys be set? [chapter]
Ccp-csp 201909-3 character drawing 100
Ccf-csp 201803-3 URL mapping 100 points
K splitting of dynamic programming /n maximum addend K splitting of n
The latest investment report of animoca brands: 340+ investment projects, with a total investment of US $1.5 billion and a total reserve capital of more than 5billion
Leetcode 713. Subarray double pointers whose product is less than k
Acwing 792 high precision subtraction
Go Technology Daily (June 7, 2022) - go programmer development efficiency artifact summary
Ccf-csp 201903-3 damaged RAID5 70 points to be optimized
Leetcode 238. Product of arrays other than itself
杰理最后io_key 双按键如何使用?【篇】
Leetcode 1310. Subarray XOR query prefix and + XOR
Go技術日報(2022-06-07)——go程序員開發效率神器匯總
Ccf-csp 201903-4 messaging interface
Ccf-csp 201803-5 quadratic summation 30 points
Ccf-csp 202203-1 uninitialized warning
export相關知識
What are the focuses of testing, pre release and production environment testing?
Dynamic programming / Fibonacci series