MariaDB:10.6.3
- 安装MariaDB (没有homebrew的请自行安装)
brew install mariadb
- 启动服务
brew services start mariadb
- 登录
mysql
- 设置Root密码
use mysql;
SET PASSWORD FOR 'root'@localhost=PASSWORD('new password')
- 删除账户
# 将自动生成的本机账户删除
DROP USER '你机器的名字'
MariaDB:10.6.3
brew install mariadb
brew services start mariadb
mysql
use mysql;
SET PASSWORD FOR 'root'@localhost=PASSWORD('new password')
# 将自动生成的本机账户删除
DROP USER '你机器的名字'