run MySQL server when mac osx lion startup

Discussion in 'Mac OS X Server, Xserve, and Networking' started by pastel.pro, Aug 14, 2011.

  1. pastel.pro macrumors newbie

    Joined:
    Aug 14, 2011
    #1
    Hi,

    As lion server doesn't include mysql, I installed it manually.
    But server doesn't start when I boot my computer.

    Here is the console messages :
    14/08/11 09:02:08,906 com.apple.SystemStarter: Starting MySQL database server
    14/08/11 09:02:09,923 SystemStarter: MySQL 5.5.15-community (124) did not complete successfully
    14/08/11 09:02:09,924 SystemStarter: /Library/StartupItems/MySQLCOM

    If I start manually with this command :
    sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
    It says "Starting MySQL database server", but sometimes it works, other mysql doesn't start...

    Thanks,
    Marc.
     
  2. camuzman macrumors newbie

    Joined:
    Sep 4, 2011
    #3
    After delete etc/my.cnf please copy this file

    sudo cp /usr/local/mysql/support-files/my-small.cnf /etc/my.cnf
     
  3. pastel.pro thread starter macrumors newbie

    Joined:
    Aug 14, 2011
    #4
    Thanks very very much, this worked perfectely :

    sudo cp /usr/local/mysql/support-files/my-small.cnf /etc/my.cnf
     

Share This Page