标签:
2. 下载mysql workbench
3. 启动mysql server
4. 进入mysql命令行
5. 修改root密码
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘mypass‘;
6. 增加用户
grant all privileges on *.* to john@localhost identified by ‘123‘; 说明:用户john分配可对所有数据库的所有表进行所有操作的权限,并设定口令为123。
7. unsafe updates under safe update model
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect.
SET SQL_SAFE_UPDATES=0;
标签:
原文地址:http://www.cnblogs.com/allanli/p/install_mysql_under_mac.html