Gossamer Forum
Home : General : Databases and SQL :

Can't connect to msql server on localhost

Quote Reply
Can't connect to msql server on localhost
Hello all,

I'm using the msql v2 DBMS on a freebsd machine.

I'm going to use this for some web applications but i have some problems..

I can't connect neither from CLI nor through the web scripts to the Database that i have created..

When i issue the command "msql -h localhost test" i get the response

"Can't connect to Msql server on localhost"

but when i issue the command "msql test" i get connected normally but i really need the first format..

Any ideas????

Thanks!!!!!
Quote Reply
Re: [tasos_patra] Can't connect to msql server on localhost In reply to
Try connecting to your ip address. Probably won't work but in the wierd chance...

Maybe running the SQL command:

show variables;

will give you some clues on things. Check to see if you have a file ~/.my.cnf that may contain automatic login information

Not sure what else you can do.