标签:man password $path tar 环境 pass mamicode 关闭 host
二进制文件安装 ,官网给定具体安装步骤: https://dev.mysql.com/doc/refman/8.0/en/binary-installation.html
然后就是设置环境变量 export PATH = $PATH:/usr/local/mysql/bin
设置密码:
set password for root@localhost = password(‘123‘) 或者 set password for root@localhost = ‘123‘
使用yum或者apt-get安装的需要启动mysql
查询mysql状态
service mysql status
关闭
service mysql stop
启动
service mysql start
标签:man password $path tar 环境 pass mamicode 关闭 host
原文地址:https://www.cnblogs.com/yongan140621/p/10955691.html