当前位置:   article > 正文

mac安装mysql 8.0.23_mac 安装mysql8.0.23

mac 安装mysql8.0.23

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</

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/872462
推荐阅读
相关标签
  

闽ICP备14008679号