Solved

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

Posted on 2011-03-03
1
673 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 500 total points
ID: 35032676
Are you sure MySQL is running? Check

ps ax | grep mysql

Open in new window

0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql between clause 2 41
MySQL - need to join three tables 2 54
issue with DB import 1 36
Formating field in mysql Advance formatting 1 41
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…

726 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