linux安装mysql后关机的时候经常死机
来源:互联网 发布:淘宝优惠助手 编辑:程序博客网 时间:2024/05/01 19:50
linux mint安装mysql后无法关机或者重启。reboot的时候总是停在mysql关闭的进程中。
a stop job is running for mysql community
解决方案参考:https://askubuntu.com/questions/615129/systemd-mysql-wont-stop
had the same problem (upgrade to 15.04, using official files and config).I had to make the following changes to be able to stop the mysql daemon manually with sytemctl and automatically on system reboot/shutdown: Make /etc/mysql/debian.cnf readable for the mysql user with sudo chgrp mysql /etc/mysql/debian.cnf; sudo chmod 640 /etc/mysql/debian.cnf Provide a slightly modified mysql.service file: sudo cp /lib/systemd/system/mysql.service /etc/systemd/system/ sudo chmod 755 /etc/systemd/system/mysql.service Provide an explicit stop command by opening the copied file in an editor: sudo nano /etc/systemd/system/mysql.service and adding the following line under the [Service] section: ExecStop=/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf shutdown In Nano, use Ctrl+O to save (Linux way!), Ctrl+X to exit. Make the new service file known to system: sudo systemctl daemon-reload
0 0
- linux安装mysql后关机的时候经常死机
- ubuntu关机的时候死机
- SOS重装win2000后经常死机的问题SOS
- IE经常死机的解决办法
- 电脑经常死机的原因
- WINDOWS 2003 SP2 与 QQ 有冲突,安装后可能会经常死机
- 修复lenovo b50-30 安装linux后出现的重启关机时死机的问题
- 试试mysql数据碎片整理吧解决astgo经常死机变慢的问题
- 解决了电脑经常死机的问题
- 我的linux经常死机,请问是甚么问题导致的
- Linux异常关机后,Mysql启动出错ERROR 2002 (HY000)
- vmware安装后引起系统死机
- MYSQL经常出现连接失败,刷新后正常的解决办法
- MySql max_allowed_packet 修改后经常变化的原因
- 设定linux开机后和关机前执行的命令
- linux安装时候的问题
- Foxconn6100K8MB-RS经常死机、黑屏自动重起的解决
- 电脑使用中经常死机的原因分析
- Android使用intent跳转到其它应用activity界面
- Android时间分发机制和流程最清晰版本(个人认为)
- 子集生成的两种方法
- ACM:Y: Three Jugs
- swift——Unicode Character
- linux安装mysql后关机的时候经常死机
- Android编译运行项目时报错java.io.IOException: Please correct the above warnings first.
- 静态代码扫描(五)——Java资源关闭的特殊场景
- C#获取汉字拼音或首字母
- Strategy Pattern
- CopyOnWriteArrayList源码分析
- OpenCV常用函数记载
- 字符串——正则表达式匹配
- 织梦自增函数[field:global name=autoindex/]的用法