在安装使用update设置初始密码时报错
Column 'Password' is not updatable
初始密码设置 1.编辑my.conf
$ vi /usr/local/etc/my.cnf
2.添加以下代码
[mysqld]
skip-grant-tables
3.使用终端
flush privileges;
SET PASSWORD FOR root@localhost = PASSWORD("some_password");
flush privileges;
4.再编辑my.conf 去掉以下代码
[mysqld]
skip-grant-tables
mariadb相关命令
brew services run mariadb # 启动mysql 服务
brew services start mariadb # 启动 mysql 服务,并注册开机自启
brew services stop mariadb # 停止 mysql 服务,并取消开机自启
brew services restart mariadb # 重启 mysql 服务,并注册开机自启
brew services cleanup # 清除已卸载应用的无用配置