赞
踩
mysql
brew install mysql 版本8.0.23
一、配置文件位置
/usr/local/etc
二、启动方式
brew services start mysql 启动
brew services restart mysql 重启
三、安装后本地登录root没有密码决绝方式
在配置文件中添加
skip-grant-tables // 进行免密码登录
// mysql下面的用户信息存在 表 mysql
// 查询原有数据
select host,user,authentication_string,plugin from user;
use mysql
// 创建一个新用户
// 注意上面出现ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement</
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。