Every time I start my system. I have to run a command
sudo /usr/local/mysql-5.5.9-osx10.6-x86_64/support-files/mysql.server start
to start mysql. How can I start it automatically on login (System start)?
Every time I start my system. I have to run a command
sudo /usr/local/mysql-5.5.9-osx10.6-x86_64/support-files/mysql.server start
to start mysql. How can I start it automatically on login (System start)?
How did you install MySQL?
There are official installer packages for OS X, that have an installer for a startup item and a preference pane for System Preferences to easily toggle auto-start of MySQL.
Don't know how you installed MySQL, but if you have a MySQL symlink in /etc/init.d
then you can run update-rc.d
as follows which will add mysql to your list of apps which are run at system start-up.
sudo update-rc.d mysql defaults
For info on update-rc.d use:
man update-rc.d