当前位置:网站首页>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
边栏推荐
猜你喜欢

Eigen learning summary

The ultimate experience, the audio and video technology behind the tiktok

MySQL 中的字符串函数

开源按键组件Multi_Button的使用,含测试工程

2022年流动式起重机司机国家题库模拟考试平台操作

Go's gin framework learning

2022江西储能技术展会,中国电池展,动力电池展,燃料电池展

Nat Commun|在生物科学领域应用深度学习的当前进展和开放挑战
![[UDS unified diagnostic service] (Supplement) v. detailed explanation of ECU bootloader development points (1)](/img/74/bb173ca53d62304908ca80d3e96939.png)
[UDS unified diagnostic service] (Supplement) v. detailed explanation of ECU bootloader development points (1)

C network related operations
随机推荐
2022年茶艺师(初级)考试模拟100题及模拟考试
Transfer learning of five categories of pictures based on VGg
ROS package NMEA_ navsat_ Driver reads GPS and Beidou Positioning Information Notes
Leak detection and vacancy filling (VII)
JS high frequency interview questions
Read excel, int digital time to time
C byte array (byte []) and string are converted to each other
2022 Jiangxi energy storage technology exhibition, China Battery exhibition, power battery exhibition and fuel cell Exhibition
undefined reference to `Nabo::NearestNeighbourSearch
Halo open source project learning (II): entity classes and data tables
[UDS unified diagnostic service] IV. typical diagnostic service (6) - input / output control unit (0x2F)
Nat Commun|在生物科学领域应用深度学习的当前进展和开放挑战
2022制冷与空调设备运行操作判断题及答案
Gaode map search, drag and drop query address
[UDS unified diagnostic service] (Supplement) v. detailed explanation of ECU bootloader development points (2)
Implementation of object detection case based on SSD
Svn simple operation command
Logic regression principle and code implementation
Excel opens large CSV format data
JS forms the items with the same name in the array object into the same array according to the name