jmonteiro (owner)

Revisions

gist: 131620 Download_button fork
public
Public Clone URL: git://gist.github.com/131620.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
Installing MySQL 5.1 in Mac OS X Leopard
 
1. Get the MySQL Community Server 5.1 `dmg` from www.mysql.com, and install both mysql-5.1.xx-osx10.5-x86.pkg and MySQLStartupItem.pkg.
 
2. Open the Terminal, and create (or edit) a file named .bash_login, with the following content:
 export PATH="$PATH:/usr/local/mysql/bin:/usr/local/mysql/support-files"
 
3. If you don't want the MySQL server to startup with the boot, don't install the MySQLStartupItem.pkg or (if you installed it) just run `sudo vim /etc/hostconfig` and replace "MYSQLCOM=-YES-" with "MYSQLCOM=-NO-"
 
4. If you want a GUI tool to manage your MySQL installation, just go to http://dev.mysql.com/downloads/gui-tools/5.0.html and get the MySQL GUI Tools Bundle.
 
Use `mysql` to call the MySQL's console, and `sudo mysql.server start` and `sudo mysql.server stop` to start and stop the MySQL server.