Right now I do a netstat -n | grep 3306 and nothing come. Beside I try to connect using:
$ mysql -h127.0.0.1 -u root -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)
to connect and see the error below. Even so, when I use:
$ mysql -hlocalhost -u root -p
no problem at all to connect to the server.
All this indicated me that MySQL Server installed the official installer on OS X 10.10 Yosemite, not allow networks connection to the server. How I enable that feature?
EDIT TO MAKE A POINT WY IS NOT A DUPLICATE QUESTION
Suggestions for solve this problem can be found in a lot of places like here, but none of those solutions worked for me. I will explain what I did, so MySQL on OS X gurus can suggest new things ;)
I install MySQL following this guide
Copy sample of my.cnf
sudo cp /usr/local/mysql/support-files/my-innodb-heavy-4G.cnf /etc/my.cnf
I can stop and start the service using the Figure 2.49 MySQL Preference
I tested without success:
Just comment out bind-address= altogether. When you do that, it will bind to all addresses. Also make sure that you don't have skip-networking enabled in your my.cnf.
I tested with bind-address comment out as well as skip-networking comment out. I tested with bind-address = 127.0.0.1 and with bind-address = 192.168.1.77 too.
I really don't what else to do. I'm testing that MySQL server is not listening to any TCP port using two commands:
netstat -n | grep 3306, showing nothing.mysql -h 127.0.0.1 -u root -pandmysql -h 192.168.1.77 -u root -p, receiving Can't connect to MySQL server on... error
Any Help?
/etc/my.cnffile is read by the mysql deamon on OS X, but I can't find if any other file is being reading by MySQL to pick configuration values. Thanks again for your reply. – Aug 16 '15 at 00:18Try write you configuration to /etc/mysql/my.cnf
– Navern Aug 16 '15 at 01:34/usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --port=3307that is the command line set for the installer, and as you can see, the port is 3307, no 3306, that was the problem ;) – Aug 16 '15 at 05:53