Installation 3
Install package
For the Mac OS X install, you have just downloaded a file whose name ends in .dmg .
Double click on this file to mount the dmg file, and then double click on the new disk
icon to open the installation.
There are three files in the installation as I write this: a ReadMe file, which you should read;
a MySQLStartupItem.pkg file, which you would use only if you want MySQL to start up
every time you start your computer; and the mysql standard xxxxx.pkg file. The latter will
install MySQL on your computer. Double click it and follow the instructions.
You will need to give the installer your administrative username and password. After that,
you can just follow the defaults and install MySQL.
When the software is successfully installed, close the installer program, drag the mysql
standard disk to the eject button, and you are ready to start using MySQL!
Start MySQL
If you installed the startup item, MySQL will start automatically every time you start your
computer. Otherwise, you will need to go to the command line of an administrative account
and type:
sudo /usr/local/mysql/bin/mysqld_safe
After you type your administrative password, mysqld will be running on your computer. If
MySQL starts up correctly, type CTRL Z, then bg and return, and then you can exit out
of the terminal.
When you want to shut down MySQL, go back to the command line and type:
/usr/local/mysql/bin/mysqladmin h localhost u root p shutdown
It will ask for your MySQL root password. Type it, and MySQL will shut down.
Connect to your server
In CocoaMySQL, if it is not showing
you a Connecting window, pull
down the File menu and choose
New . Leave everything blank
except for Host and User. Set Host to
localhost and User to root . Click
Connect and you will be connected
to your MySQL server.
If you are using the command line,
type:
/usr/local/mysql/bin/mysql h
localhost u root p
Test Version
In CocoaMySQL, go to the Custom
Query tab. Type select version() to