Solved

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

Posted on 2011-03-03
1
650 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
Comment Utility
Are you sure MySQL is running? Check

ps ax | grep mysql

Open in new window

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Insert command generates error in MySQL 3 40
SQL Column not found 7 42
Remote MySQL using SSH 11 60
Instering to MySQL table 5 15
I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

8 Experts available now in Live!

Get 1:1 Help Now