Forums MAMPStack

mysql startup error

Subscribe to mysql startup error 3 post(s), 3 voice(s)

 
Avatar mjolles 1 post

Hi,

I installed the stack for an apple intel with os X leopard and apache worked fine but for the mysql I got this series of messages. Any idea what went wrong?

Macintosh:~ markjolles$ /applications/mampstack-0.9.4/mysql/bin/mysqladmin -p version
Enter password:
/applications/mampstack-0.9.4/mysql/bin/mysqladmin: connect to server at ‘localhost’ failed
error: ‘Can’t connect to local MySQL server through socket ’/tmp/mysql.sock’ (2)’
Check that mysqld is running and that the socket: ’/tmp/mysql.sock’ exists!
Macintosh:~ markjolles$ /Applications/mampstack-0.9.4/mysql/bin/mysqladmin stop mysql
/Applications/mampstack-0.9.4/mysql/bin/mysqladmin: connect to server at ‘localhost’ failed
error: ‘Can’t connect to local MySQL server through socket ’/tmp/mysql.sock’ (2)’
Check that mysqld is running and that the socket: ’/tmp/mysql.sock’ exists!
Macintosh:~ markjolles$ ps xa | grep mysqld 171 s000 S 0:00.02 /bin/sh /Applications/mampstack-0.9.4/mysql/bin/safe_mysqld—defaults-file=/Applications/mampstack-0.9.4/mysql/my.cnf—port=3306—socket=/Applications/mampstack-0.9.4/mysql/tmp/mysql.sock—old-passwords—datadir=/Applications/mampstack-0.9.4/mysql/data—log-error=/Applications/mampstack-0.9.4/mysql/data/mysqld.log—pid-file=/Applications/mampstack-0.9.4/mysql/data/Macintosh.pid—lower-case-table-names=1—default-table-type=InnoDB 222 s000 S 0:00.18 /Applications/mampstack-0.9.4/mysql/bin/mysqld.bin—defaults-file=/Applications/mampstack-0.9.4/mysql/my.cnf—basedir=/Applications/mampstack-0.9.4/mysql—datadir=/Applications/mampstack-0.9.4/mysql/data—user=mysql—pid-file=/Applications/mampstack-0.9.4/mysql/data/Macintosh.pid—port=3306—socket=/Applications/mampstack-0.9.4/mysql/tmp/mysql.sock—old-passwords—lower-case-table-names=1—default-table-type=InnoDB 232 s000 R+ 0:00.00 grep mysqld
Macintosh:~ markjolles$

Any help would be appreciated.

Mark Jolles
mjolles@pacbell.net
310-242-0660

 
Avatar antonio Administrator 508 post(s)

Hi,

This is currently a bug in the stacks we’re aware of :) It is already solved and it will work okay once we update MAMPStack

Cheers

 
Avatar beltran Administrator 392 post(s)

Hi,

You can resolve the issue adding the -S option to set the socket:

$ mysqladmin -S /applications/mampstack-0.9.4/mysql/tmp/mysql.sock

Forums MAMPStack