当前位置:网站首页>mysql自动启动设置用Systemctl start mysqld启动
mysql自动启动设置用Systemctl start mysqld启动
2022-04-23 18:00:00 【浅唱~幸福】
1.如果你是用yum安装的话就不需要进行设置了 用systemctl restart mysqld启动报如下错:
![]()
2.查看系统服务有没有mysqld
chkconfig --list

3.MySQL启动关闭添加到 /etc/init.d/mysqld
cp /data/mysql/support-files/mysql.server /etc/init.d/mysqld ( /data/mysql为安装目录)
4.则按照如下方法安装服务器
cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql 将服务文件拷贝到init.d下,并重命名为mysqld
chmod +x /etc/init.d/mysqld 赋予可执行权限
chkconfig --add mysqld 添加服务
chkconfig --list 显示服务列表

5.如下图 如果看到mysql的服务,并且3,4,5都是on的话则成功,如果是off,则键入

6.####重启电脑
reboot
重启之后再看mysql有没自启动成功
输入命令:systemctl status mysqld

版权声明
本文为[浅唱~幸福]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_39643007/article/details/111640135
边栏推荐
- I/O多路复用及其相关详解
- Timestamp to formatted date
- Vite configure proxy proxy to solve cross domain
- C1 notes [task training chapter I]
- 2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
- 列錶的使用-增删改查
- cartographer_ There is no problem compiling node, but running the bug that hangs directly
- Notes on common basic usage of eigen Library
- 开源按键组件Multi_Button的使用,含测试工程
- YOLOv4剪枝【附代码】
猜你喜欢

Compilation principle first set follow set select set prediction analysis table to judge whether the symbol string conforms to the grammar definition (with source code!!!)

2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试

re正則錶達式

Cross domain settings of Chrome browser -- including new and old versions

Summary of floating point double precision, single precision and half precision knowledge

Map basemap Library

.104History

Welcome to the markdown editor

Qtablewidget usage explanation

k8s之实现redis一主多从动态扩缩容
随机推荐
2022制冷与空调设备运行操作判断题及答案
Compilation principle first set follow set select set prediction analysis table to judge whether the symbol string conforms to the grammar definition (with source code!!!)
Stanford machine learning course summary
cv_ Solution of mismatch between bridge and opencv
How to read literature
C1小笔记【任务训练篇一】
C byte array (byte []) and string are converted to each other
2022 judgment questions and answers for operation of refrigeration and air conditioning equipment
.104History
C language loop structure program
Anchor location - how to set the distance between the anchor and the top of the page. The anchor is located and offset from the top
Auto.js 自定义对话框
Scikit learn sklearn 0.18 official document Chinese version
云原生虚拟化:基于 Kubevirt 构建边缘计算实例
Operation of 2022 mobile crane driver national question bank simulation examination platform
vite配置proxy代理解决跨域
Using files to save data (C language)
Auto. JS custom dialog box
re正則錶達式
Click Cancel to return to the previous page and modify the parameter value of the previous page, let pages = getcurrentpages() let prevpage = pages [pages. Length - 2] / / the data of the previous pag