can't start MySql in Mac OS 10.6 Snow Leopard

后端 未结 16 2580
灰色年华
灰色年华 2020-12-04 13:11

I\'ve googled this and could\'nt find anything new and useful for Apple\'s new OS SnowLeopard. I wonder if this is my mistake or I do need to do something?

this is w

16条回答
  •  一向
    一向 (楼主)
    2020-12-04 13:23

    I'm not entirely sure why my MySQL installation stopped working but it started trying to run as the incorrect user, as mysql instead of _mysql

    Here was my error output:

    140422 14:46:14 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
    140422 14:46:14 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
    140422 14:46:14 [ERROR] Fatal error: Can't change to run as user 'mysql' ;  Please check that the user exists!
    
    140422 14:46:14 [ERROR] Aborting
    
    140422 14:46:14 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
    

    The fix for me was to edit /usr/local/mysql/bin/mysqld_safe and set the user line at the top from:

    user='mysql'
    

    to

    user='_mysql'
    

    That line was on line 25 for me with mysql-5.5.37-osx10.6-x86_64

提交回复
热议问题