Quick tips to set up MySQL on your intel Mac OSX Lion machine
- Download the MySQL .dmg file here
- Within the .dmg file:
- Run the large MySQL .pkg file
- Run the MySQLStartupItem.pkg file
- Run MySQL.pref_Pane
- Active MySQL server
- If you don't want to deal with this again, select the option to automatically start MySQL when your computer boots
Now, run the following commands in terminal
- Add mysql to your PATH
- Run 'sudo nano -S /etc/profile'
- Add the line 'export PATH=$PATH:/usr/local/mysql/bin' and save changes
- Open a new Terminal window for changes to take effect
- Enable a root password for your DB
- Run 'mysqladmin -u root password', where 'password' is your secure DB password.
- Run 'mysql -u root -p'. You should now have command-line access to your local MySQL DB.
No comments:
Post a Comment