I'm having a big issue with MySQL on Mac OS X El Capitan.
I'm installing it correctly. Then I'm running the command:
cd /usr/local/mysql
sudo ./bin/mysqld_safe
It shows an error :
2016-06-13T23:09:19.6NZ mysqld_safe Logging to '/usr/local/mysql-5.7.13-osx10.11-x86_64/data/MacBook-Pro-de-Yasser.local.err'.
2016-06-13T23:09:19.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql-5.7.13-osx10.11-x86_64/data
2016-06-13T23:11:00.6NZ mysqld_safe mysqld from pid file /usr/local/mysql-5.7.13-osx10.11-x86_64/data/MacBook-Pro-de-Yasser.local.pid ended
and when I'm trying to connect using:
/usr/local/mysql/bin/mysqladmin -u root password pass
it shows the error:
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!
Any idea how to solve this?
Aucun commentaire:
Enregistrer un commentaire