当前位置:网站首页>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
边栏推荐
- .105Location
- [UDS unified diagnostic service] IV. typical diagnostic service (4) - online programming function unit (0x34-0x38)
- 读取excel,int 数字时间转时间
- 2022江西储能技术展会,中国电池展,动力电池展,燃料电池展
- C1小笔记【任务训练篇二】
- Nat commun | current progress and open challenges of applied deep learning in Bioscience
- 油猴网站地址
- Welcome to the markdown editor
- 2022制冷与空调设备运行操作判断题及答案
- I/O多路复用及其相关详解
猜你喜欢
Operators in C language
Random number generation of C #
2022 tea artist (primary) examination simulated 100 questions and simulated examination
The JS timestamp of wechat applet is converted to / 1000 seconds. After six hours and one day, this Friday option calculates the time
Data stream encryption and decryption of C
2022制冷与空调设备运行操作判断题及答案
Batch export ArcGIS attribute table
C1 notes [task training chapter I]
极致体验,揭晓抖音背后的音视频技术
Install pyshp Library
随机推荐
Go file operation
C [file operation] read TXT text by line
2022年茶艺师(初级)考试模拟100题及模拟考试
Welcome to the markdown editor
This point in JS
Amount input box, used for recharge and withdrawal
Map basemap Library
2022江西储能技术展会,中国电池展,动力电池展,燃料电池展
2022 Jiangxi Photovoltaic Exhibition, China Distributed Photovoltaic Exhibition, Nanchang Solar Energy Utilization Exhibition
Data stream encryption and decryption of C
Timestamp to formatted date
列錶的使用-增删改查
re正则表达式
Realsense selection comparison d455 d435i d415 t265 3D hardware comparison
C language array processing batch data
Summary of common server error codes
2022 Jiangxi Photovoltaic Exhibition, China distributed Photovoltaic Exhibition, Nanchang solar energy utilization Exhibition
Chrome浏览器的跨域设置----包含新老版本两种设置
Theory and practice of laser slam in dark blue College - Chapter 2 (odometer calibration)
The ultimate experience, the audio and video technology behind the tiktok