Answers for "how to download mysql brew"

0

brew install mysql

brew install [email protected]

# 添加mysql到环境变量
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

# 刷新
source ~/.zshrc

# 查看当前版本
mysql --version

# 没有提示你默认密码是多少 通过下面的命令直接修改密码
mysqladmin -u root password "你的密码"

# 然后重启mysql服务
mysql.server restart
12345678910111213141516
Posted by: Guest on June-25-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language