can't connect to mysql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
hounkanrinjp
Forum Newbie
Posts: 6
Joined: Mon Aug 19, 2002 8:39 am

can't connect to mysql

Post by hounkanrinjp »

Hi, I am trying to access mysql server on my MAC OS X server using the mysql client, but i get this error:

can't connect to mysql using /tmp/mysql.sock

can anyone help me please? It's very urgent.
Thank you guys
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

MySQL

Post by Takuma »

Have you set the MySQL password and username? I don't use Mac so I'm not sure though...
hounkanrinjp
Forum Newbie
Posts: 6
Joined: Mon Aug 19, 2002 8:39 am

Post by hounkanrinjp »

In fact, Mac OS X is a Unix-based operating system, which means that it responds to all the commands a normal unix os would respond to and have the same kind of attributes and and basically, runs the same software the same way. So, that is not the problem. And, yeah, I specified a username and password and it didn't work.
So, if you've got any better idea, let me know about it.
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post by enygma »

does that file exist? if not check out the mysql.com docs for a solution. I know there's something in there that talks about how to fix that (I've done it before once or twice, but I don't remember how).
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

google the error. I know I was getting the same thing for awhile, and I found the answer on google, but I don't recall it. I believe it was just some configuration setting I had wrong.
Post Reply