need to stop mysql server on my mac os x

Posted by al0ne evenings on Super User See other posts from Super User or by al0ne evenings
Published on 2012-10-29T06:20:41Z Indexed on 2012/10/29 17:06 UTC
Read the original article Hit count: 517

Filed under:
|

I just installed xampp on my mac os x. When I tried start mysql it display a message that mysql is already running on this computer. In order to start mysql stop first mysql. I tried following ways to stop it but neither of them works.

mysqladmin version
sudo /usr/local/mysql/mysql.server stop //mysql.server command not found
mysqladmin -u root -p password shutdown //restarts the server but not shutdown

when i use which mysql command it shows this path

/usr/local/bin/mysql

and when I issue ps aux | grep mysqld command I get following output

zafarsaleem    85209   0.0  0.3  2699804  13204   ??  S     7:51AM   0:00.88    /Applications/MAMP/Library/bin/mysqld --basedir=/Applications/MAMP/Library --datadir=/Applications/MAMP/db/mysql --plugin-dir=/Applications/MAMP/Library/lib/plugin --lower-case-table-names=0 --log-error=/Applications/MAMP/logs/mysql_error_log.err --pid-file=/Applications/MAMP/tmp/mysql/mysql.pid --socket=/Applications/MAMP/tmp/mysql/mysql.sock --port=8889
zafarsaleem    85093   0.0  0.0  2435488    924   ??  S     7:51AM   0:00.03 /bin/sh /Applications/MAMP/Library/bin/mysqld_safe --port=8889 --socket=/Applications/MAMP/tmp/mysql/mysql.sock --lower_case_table_names=0 --pid-file=/Applications/MAMP/tmp/mysql/mysql.pid --log-error=/Applications/MAMP/logs/mysql_error_log
zafarsaleem    86693   0.0  0.0  2425480    180 s004  R+    8:30AM   0:00.00 grep mysqld
zafarsaleem    86507   0.0  0.3  2678756  11364   ??  S     8:07AM   0:00.63 /usr/local/Cellar/mysql/5.5.20/bin/mysqld --basedir=/usr/local/Cellar/mysql/5.5.20 --datadir=/usr/local/var/mysql --plugin-dir=/usr/local/Cellar/mysql/5.5.20/lib/plugin --max-allowed-packet=32M --log-error=/usr/local/var/mysql/Zafars-MacBook-Pro-2.local.err --pid-file=/usr/local/var/mysql/Zafars-MacBook-Pro-2.local.pid
zafarsaleem    86447   0.0  0.0  2435488    920   ??  S     8:07AM   0:00.02 /bin/sh /usr/local/bin/mysqld_safe --max_allowed_packet=32M

Please help. How can I resolve this issue.

© Super User or respective owner

Related posts about mysql

Related posts about osx