当前位置:网站首页>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
边栏推荐
- JS forms the items with the same name in the array object into the same array according to the name
- Leak detection and vacancy filling (VII)
- cartographer_ There is no problem compiling node, but running the bug that hangs directly
- 20222 return to the workplace
- This point in JS
- Crack sliding verification code
- Remember using Ali Font Icon Library for the first time
- 纳米技术+AI赋能蛋白质组学|珞米生命科技完成近千万美元融资
- C1 notes [task training chapter I]
- 云原生虚拟化:基于 Kubevirt 构建边缘计算实例
猜你喜欢
Implementation of image recognition code based on VGg convolutional neural network
re正則錶達式
MySQL_ 01_ Simple data retrieval
Auto. JS custom dialog box
C network related operations
Client example analysis of easymodbustcp
C language loop structure program
2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
C1小笔记【任务训练篇二】
Laser slam theory and practice of dark blue College Chapter 3 laser radar distortion removal exercise
随机推荐
Amount input box, used for recharge and withdrawal
Using files to save data (C language)
Process management command
[UDS unified diagnostic service] (Supplement) v. detailed explanation of ECU bootloader development points (1)
Arithmetic expression
2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
Halo 开源项目学习(二):实体类与数据表
Map basemap Library
Summary of floating point double precision, single precision and half precision knowledge
QTableWidget使用讲解
The JS timestamp of wechat applet is converted to / 1000 seconds. After six hours and one day, this Friday option calculates the time
Use of list - addition, deletion, modification and query
C byte array (byte []) and string are converted to each other
C language implements memcpy, memset, strcpy, strncpy, StrCmp, strncmp and strlen
C# 的数据流加密与解密
Encapsulate a timestamp to date method on string prototype
Logic regression principle and code implementation
Re regular expression
How to read literature
Laser slam theory and practice of dark blue College Chapter 3 laser radar distortion removal exercise