Author Topic: Path to MySQL problem  (Read 1997 times)

callin

  • Posts: 7
    • View Profile
Path to MySQL problem
« on: August 26, 2004, 01:05:55 pm »
Hello,

I have my site hosted on 1and1 servers - I changed the config file and uploaded but when I went to login I got this:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/37/d87805437/htdocs/VA/ListMail/admin.php on line 2296
Could not connect to MySQL, host / user / pass = localhost / xxxxxxx / xxxxxxx
MySQL Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Help!  <grin>  Thanks in advance.

Cheryl

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Path to MySQL problem
« Reply #1 on: August 30, 2004, 06:06:43 am »
Hi Cheryl,

It looks like a problem with your MySQL username, password, database, hostname, or any combination of the two.

Are you sure you have created a database, set up a username and password, and also (on some servers) added the user to have permission to the database?

Most hosts use "localhost" as the hostname, but your host could use something else.  This could be mentioned in your hosting FAQ or your MySQL control panel / setup page.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

callin

  • Posts: 7
    • View Profile
Thanks
« Reply #2 on: August 30, 2004, 09:17:11 am »
Thanks Dean...

I believe I have everything configured - ahhhhh, now I see my problem!  I had the hostname set wrong, they had a specific hostname!  Fantastic!  Thanks so much!

Cheryl