Solved

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

Posted on 2011-03-03
1
657 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
1 Comment
 
LVL 3

Accepted Solution

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

ps ax | grep mysql

Open in new window

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now