whereis mysql 查看安装目录
which mysql 查找运行文件位置
数据库先赋权chmod +x /etc/init.d/mysql
重启服务并确保它在系统启动时自动启动
sudo systemctl restart mysqld
sudo systemctl enable mysqld
whereis mysql 查看安装目录
which mysql 查找运行文件位置
数据库先赋权chmod +x /etc/init.d/mysql
重启服务并确保它在系统启动时自动启动
sudo systemctl restart mysqld
sudo systemctl enable mysqld