码迷,mamicode.com
首页 > 数据库 > 详细

mac 下安装 mysql

时间:2016-06-23 14:27:44      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

1. 下载mysql community server

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;

 

mac 下安装 mysql

标签:

原文地址:http://www.cnblogs.com/allanli/p/install_mysql_under_mac.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!