- 双击 mysql-5.6.12-osx10.7-x86_64.dmg
- 双击 mysql-5.6.12-osx10.7-x86_64.pkg
- 双击 MySQL.prefPane
- 系统偏好设置里启动 MySQL
- 验证
1
2
3
4
|
Rango-MBP:~ rango$ cd /usr/local/mysql
Rango-MBP:mysql rango$ cd bin
Rango-MBP:bin rango$ pwd
/usr/local/mysql/bin
|
- 登入MySQL服务器,首次登入无密码,直接回车即可 看到下面这些说明安装成功.
1
2
3
4
5
6
7
8
9
10
11
|
Rango-MBP:bin rango$ ./mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 90
Server version: 5.6.12 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
|
- 验证数据库,四个是正常的,如果没有四个重启电脑,开启服务应该就是4个了
1
2
3
4
5
6
7
8
9
10
|
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.00 sec)
|
- 退出
- 修改MySQL 的 root 密码 为123456 (次数有限,二次修改很麻烦)
1
|
Rango-MBP:bin rango$ ./mysqladmin -u root password 123456
|
- 输入新密码登入
1
2
|
Rango-MBP:bin rango$ ./mysql -u root -p
Enter password:
|
2. 安装图形化界面管理软件
-
双击 mysql-workbench-gpl-5.2.47-osx-i686.dmg
-
启动,配置数据库
-
创建数据库(数据库的名字和后面要和服务器关联的名字一致就可以。应该是openfiredb,这里写错了,后面也将用openfiledb这个名字)
-
激活目标数据库,用于后面和服务器关联。
-
创建表(运行脚本)-刷新
3.安装 JDK
- 检查一下
1
2
|
Rango-MBP:~ rango$ java -version
No Java runtime present, requesting install.
|
- 安装 JDK(Java Development Kit)去官网下载安装即可。
4.安装 openfile_3_9_3.dmg
![](http://ww1.sinaimg.cn/mw690/741b3941gw1f75vyeq7bmj20n60eatav.jpg)
![](http://ww1.sinaimg.cn/mw690/741b3941gw1f75vz2ildhj21160wy46n.jpg)
- 确保正在运行中,然后Open Admin Console
- 配置 openfile
Rango-MBP:~ rango$ sudo vi /etc/hosts
Password: