CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCRM Fatal Error - Cannot connect to Mysql server through socket
Pages: [1]

Author Topic: CiviCRM Fatal Error - Cannot connect to Mysql server through socket  (Read 3664 times)

DaraghOBrien

  • Guest
CiviCRM Fatal Error - Cannot connect to Mysql server through socket
May 09, 2007, 08:50:10 am
Hi

I am configuring CiviCRM1.7 to demo on Drupal5.1 for a not-for-profit association I am involved in running.

Have received the following error message:

Error Details:

[db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::handle prefix="" info=" [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]"]


I've checked the socket path via phpadmin on my hosting provider and the path matches. Any ideas?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM Fatal Error - Cannot connect to Mysql server through socket
May 09, 2007, 12:02:06 pm

1. can u get phpmyadmin to check and see the civicrm database tables and content

2. can u confirm that this file actually exists: /var/lib/mysql/mysql.sock on your file system

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

DaraghOBrien

  • Guest
Re: CiviCRM Fatal Error - Cannot connect to Mysql server through socket
May 10, 2007, 01:15:54 am
Thanks for the quick response.

1) The civicrm tables are all present in the database I am installing to.
2) According to the phpmyadmin system variables the socket file is on that path but I will raise a Helpdesk request with my hosting provider to confirm (I don't have root access to the server just to my virtual host).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCRM Fatal Error - Cannot connect to Mysql server through socket

This forum was archived on 2017-11-26.