Installing MySQL on Snow Leopard using MacPorts -
i trying install mysql5 on snow leopard, having trouble. here terminal log:
users-macbook-pro:~ sam$ sudo port install mysql5password: ---> computing dependencies mysql5 ---> fetching mysql5 ---> verifying checksum(s) mysql5 ---> extracting mysql5 ---> applying patches mysql5 ---> configuring mysql5 ---> building mysql5 ---> staging mysql5 destroot ---> installing mysql5 @5.1.53_0 mysql client has been installed. if want mysql server, install mysql5-server port. ---> activating mysql5 @5.1.53_0 ---> cleaning mysql5 users-macbook-pro:~ sam$ sudo port install mysql5-server password: ---> computing dependencies mysql5-server ---> fetching mysql5-server ---> verifying checksum(s) mysql5-server ---> extracting mysql5-server ---> configuring mysql5-server ---> building mysql5-server ---> staging mysql5-server destroot ---> creating launchd control script ########################################################### # startup item has been generated aid in # starting mysql5-server launchd. disabled # default. execute following command start it, # , cause launch @ startup: # # sudo port load mysql5-server ########################################################### ---> installing mysql5-server @5.1.53_0 ****************************************************** * in order setup database, might want run * sudo -u _mysql mysql_install_db5 * if new install ****************************************************** ---> activating mysql5-server @5.1.53_0 ---> cleaning mysql5-server users-macbook-pro:~ sam$ sudo chmod -rf 777 /opt/local/var/db/mysql chmod: /opt/local/var/db/mysql: no such file or directory users-macbook-pro:~ sam$ sudo chmod -rf 777 /opt/local/var/db/mysql5 users-macbook-pro:~ sam$ sudo -u _mysql mysql_install_db5 installing mysql system tables... error: 1004 can't create file '/var/tmp/#sqlf2ef_1_0.frm' (errno: 9) 110125 20:22:45 [error] aborting 110125 20:22:45 [note] /opt/local/libexec/mysqld: shutdown complete installation of system tables failed! examine logs in /opt/local/var/db/mysql5 more information. can try start mysqld daemon with: shell> /opt/local/libexec/mysqld --skip-grant & , use command line tool /opt/local/lib/mysql5/bin/mysql connect mysql database , @ grant tables: shell> /opt/local/lib/mysql5/bin/mysql -u root mysql mysql> show tables try 'mysqld --help' if have problems paths. using --log gives log in /opt/local/var/db/mysql5 may helpful. please consult mysql manual section 'problems running mysql_install_db', , manual section describes problems on os. information source mysql email archives available @ http://lists.mysql.com/. please check of above before mailing us! , remember, if mail us, must use /opt/local/lib/mysql5/bin/mysqlbug script!
i have tried repairing disks permissions nothing seems work :( appreciate advice on how mysql , running!
try this:
sudo chown -r mysql:mysql /opt/local/var/db/mysql5 sudo chmod u+rwx,go= /opt/local/var/db/mysql5 sudo /opt/local/lib/mysql5/bin/mysql_install_db --user=mysql
if you're having problem setting root password, reset using instructions found here: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix
for starting , stopping mysql daemon use following aliases:
alias mysql_start='sudo /opt/local/etc/launchdaemons/org.macports.mysql5/mysql5.wrapper start'; alias mysql_stop='sudo /opt/local/etc/launchdaemons/org.macports.mysql5/mysql5.wrapper stop'; alias mysql_restart='sudo /opt/local/etc/launchdaemons/org.macports.mysql5/mysql5.wrapper restart';
best of luck!
Comments
Post a Comment