You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-3
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ The document assumes you are new to Mac. The steps below were tested on **OS X M
17
17
-[Virtualenv](#virtualenv)
18
18
-[IPython](#ipython)
19
19
-[Numpy and Scipy](#numpy-and-scipy)
20
+
-[MySQL](#mysql)
20
21
-[Projects folder](#projects-folder)
21
22
22
23
## System update
@@ -378,7 +379,6 @@ The [Numpy](http://numpy.scipy.org/) and [Scipy](http://www.scipy.org/SciPy) sci
378
379
379
380
First, grab the special formulae (which are not part of Homebrew core):
380
381
381
-
$ brew update # Always good to do
382
382
$ brew tap samueljohn/python
383
383
384
384
Then, install the `gfortran` dependency which we will need to build the libraries:
@@ -390,15 +390,58 @@ Finally, you can install Numpy and Scipy with:
390
390
$ brew install numpy
391
391
$ brew install scipy
392
392
393
-
(It make take a few minutes to build.)
393
+
(It may take a few minutes to build.)
394
+
395
+
## MySQL
396
+
397
+
### Install
398
+
399
+
We will install [MySQL](http://www.mysql.com/) using Homebrew, which will also install some header files needed for MySQL bindings in different programming languages (MySQL-Python for one).
400
+
401
+
To install, run:
402
+
403
+
$ brew update # Always good to do
404
+
$ brew install mysql
405
+
406
+
As you can see in the ouput from Homebrew, before we can use MySQL we first need to set it up with:
To start the MySQL server, use the `mysql.server` tool:
414
+
415
+
$ mysql.server start
416
+
417
+
To stop it when you are done, run:
418
+
419
+
$ mysql.server stop
420
+
421
+
You can see the different commands available for `mysql.server` with:
422
+
423
+
$ mysql.server --help
424
+
425
+
To connect with the command-line client, run:
426
+
427
+
$ mysql -uroot
428
+
429
+
(Use `exit` to quit the MySQL shell.)
430
+
431
+
**Note**: By default, the MySQL user `root` has no password. It doesn't really matter for a local development database. If you wish to change it though, you can use `$ mysqladmin -u root password 'new-password'`.
432
+
433
+
### MySQL Workbench
434
+
435
+
In terms of a GUI client for MySQL, I'm used to the official and free [MySQL Workbench](http://www.mysql.com/products/workbench/). But feel free to use whichever you prefer.
436
+
437
+
You can find the MySQL Workbench download [here](http://www.mysql.com/downloads/workbench/). (**Note**: It will ask you to sign in, you don't need to, just click on "No thanks, just start my download!" at the bottom.)
394
438
395
439
## Projects folder
396
440
397
441
This really depends on how you want to organize your files, but I like to put all my version-controlled projects in `~/Projects`. Other documents I may have, or things not yet under version control, I like to put in `~/Dropbox` (if you have Dropbox installed), or `~/Documents`.
0 commit comments