# Error installing MySQL on my Mac

**URL:** https://forum.kirupa.com/t/error-installing-mysql-on-my-mac/280485
**Category:** Uncategorized
**Created:** [January 28, 2009, 6:32am UTC](https://forum.kirupa.com/t/error-installing-mysql-on-my-mac/280485 "2009-01-28T06:32:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gokujou](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@gokujou](https://forum.kirupa.com/u/gokujou)
#### Post date: [January 28, 2009, 6:32am UTC](https://forum.kirupa.com/t/error-installing-mysql-on-my-mac/280485/1 "2009-01-28T06:32:03Z")

</div>

I have been trying to install a little development environment on my laptop using MacPorts and everything works perfect except for MySQL 5. It installs and says it works but anytime I try to send it or anything related to it a command I get this error “Can’t connect to local MySQL server through socket ‘/opt/local/var/run/mysql5/mysqld.sock’”.

Online I have read that it means the MySQL is not running, which would make sense because I think I am sending it the command to start the server after having it create the base databases it needs. I can run the “/opt/local/lib/mysql5/bin/mysql\_install\_db” no problem, but when I try to do the next step that MySQL tells me or any I find online it throws that error.

Any help or pointers would be amazing, thank you!
