2012年2月26日 星期日

install mysql 5.5 on mac (dmg)

1. download dmg file

http://dev.mysql.com/downloads/mysql/
direct download link from website

2. install file

.pkg -- two files
.prefPane -- one file (for system preferences..)

3. start mysql




4. change password

open terminal
> cd /usr/local/mysql/bin
> ./mysqladmin -h localhost -u root password [your password]

5. login
> ./mysql -u root -p

6. start mysql in command line

> cd /usr/local/mysql/support-files
> sudo ./mysql.server start