Bug #66100 ERROR 2002 (HY000)
Submitted: 30 Jul 2012 19:26 Modified: 31 Jul 2012 6:19
Reporter: branton ellerbee Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.2.41 OS:MacOS (10.7.4)
Assigned to: CPU Architecture:Any

[30 Jul 2012 19:26] branton ellerbee
Description:
I am trying to import a .sql file into a mysql database and i am getting this error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I also get the same error if i try to export the database to the desktop. 

I am new to mySQL; however, i do have 15 years of database experience. 

I have no idea what is going on, as well, i have spent the last 4 days trying to find a solution for this online to no avail. 

I can access the database, write queries and return recordsets... so i know that the database is working. 

Please let me know what this error code is referring to, and what i need to do to solve the issue. 

How to repeat:
Test on OSX 10.7.4 by selecting "manage improt / export"
Select either Data Export or Data Import/Restore in the left nav options.
follow instructions

At this point the above error gets created for me.
[31 Jul 2012 6:19] MySQL Verification Team
We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug.

Support on using our products is available both free in our forums at http://forums.mysql.com/ and for a reasonable fee direct from our skilled support engineers at http://www.mysql.com/support/

Thank you for your interest in MySQL.

ps.  If socket file is not in the expected location, try connecting with mysql client options:  --host=127.0.0.1 --protocol=tcp