?
Solved

Cannot connect to mysql database on localhost on Mac OS X 10.4.11

Posted on 2011-03-03
1
Medium Priority
?
695 Views
Last Modified: 2012-05-11
I tried connecting to mysql as usual on the Mac OS 10.4.11 using the following command:

mysql -h 127.0.0.1 -u root --password=<mypassword>

It gives the following error:

ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)

Trying to connect using the localhost as the hostname gives the following error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

There is no socket file being used. So, the second command never worked. The first one always worked. But, now it doesn't. Any ideas ?
0
Comment
Question by:imperialguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
mwiercin earned 2000 total points
ID: 35032676
Are you sure MySQL is running? Check

ps ax | grep mysql

Open in new window

0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
Six Sigma Control Plans
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question