问题一、解决linux:bash: Mysql: 未找到命令… 查看mysql服务是否启动 systemctl status mysql 查看MySQL运行环境 echo $PATH(可查看所有服务位置) 暂停MySQL服务 serv
查看mysql服务是否启动
systemctl status mysql
查看MySQL运行环境
echo $PATH(可查看所有服务位置)
暂停MySQL服务
service MySQL stop
在/etc/profile配置系统环境变量
export PATH=$PATH:(MySQL的bin目录)
让profile文件立即生效
source /etc/profile或./etc/profile
抄录于秀_儿
解决 Failed to search for file: cannot update repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist
因为Centos 8已经停止维护,所以需要改变镜像。
cd /etc/yum.repos.d/sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*sudo sed -i 's|#baseurl=Http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
抄录于Javier_Ji
来源地址:https://blog.csdn.net/qq_61407171/article/details/129418117
--结束END--
本文标题: 解决Linux:-bash: mysql: 未找到命令 问题
本文链接: https://www.lsjlt.com/news/375643.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-07
2024-05-07
2024-05-07
2024-05-07
2024-05-07
2024-05-07
2024-05-07
2024-05-07
2024-05-07
2024-05-03
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0