当前位置:网站首页>网站频繁出现mysql等数据库连接失败等信息解决办法
网站频繁出现mysql等数据库连接失败等信息解决办法
2022-07-31 00:46:00 【苏音资源】
前言
我自己的网站经常会发生【网站频繁出现mysql等数据库连接失败等信息解决办法这样的问题,需要手动重启】
于是我查询了网上的解决办法。主要如下。
解决办法
打开宝塔,计划任务输入下列代码
pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ];then
bash /www/server/panel/script/rememory.sh
/etc/init.d/mysqld start
fi
mysql进程守护,设置10分钟差不多
边栏推荐
- MySQL notes under
- MySQL master-slave replication and read-write separation script - pro test available
- Jmeter parameter transfer method (token transfer, interface association, etc.)
- Jetpack Compose learning (8) - State and remeber
- 【多线程】
- Image processing tool design
- Xss target drone training [success when pop-up window is realized]
- MySQL数据库进阶篇
- ShardingSphere之读写分离(八)
- typescript10-常用基础类型
猜你喜欢
ShardingSphere read-write separation (8)
The difference between h264 and h265 decoding
Strict Mode for Databases
Can deep learning solve the parameters of a specific function?
Understand from the 11 common examples of judging equality of packaging types in the written test: packaging types, the principle of automatic boxing and unboxing, the timing of boxing and unboxing, a
【Demo】ABAP Base64加解密测试
什么是Promise?Promise的原理是什么?Promise怎么用?
Jmeter parameter transfer method (token transfer, interface association, etc.)
ShardingSphere之未分片表配置实战(六)
论文理解:“Designing and training of a dual CNN for image denoising“
随机推荐
encrypted transmission process
Niuke.com question brushing training (4)
typescript13-类型别名
Error occurred while trying to proxy request The project suddenly can't get up
mysql索引失效的常见9种原因详解
【ABAP】MFBF过账到质量检验库存类型Demo
这个项目太有极客范儿了
[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]
MySQL的触发器
[Yugong Series] July 2022 Go Teaching Course 016-Logical Operators and Other Operators of Operators
神经网络(ANN)
go mode tidy出现报错go warning “all“ matched no packages
xss bypass: prompt(1)
MySql data recovery method personal summary
How to Add a Navigation Menu on Your WordPress Site
Image processing tool design
C language force buckles the rotating image of the 48th question.auxiliary array
Mini Program - Global Data Sharing
DOM系列之 offset 系列
Basic usage of async functions and await expressions in ES6