Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5844821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:20:50+00:00 2026-05-22T12:20:50+00:00

Actualy my server updated PHP to 5.3.6 from 5.2.x. After this- all my mysql

  • 0

Actualy my server updated PHP to 5.3.6 from 5.2.x. After this- all my mysql connections failed. I catch such PDO error
Connection failed: SQLSTATE[HY000] [2002] No such file or directory
Also checked in php.ini file value of the pdo_mysql.default_socket which is /tmp/mysql.sock

Host service told me to repair my mysql DB passwords. But it didn’t help.
Can somebody help me with this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:20:51+00:00Added an answer on May 22, 2026 at 12:20 pm

    hehe, nice support 😉 This has absolutely nothing to do with the passwords. PDO_MySQL communicates under linux via sockets with the mysql-server. First of all find out, where is the socket now. (Sorry, but I dont know how :X)

    If you have access to the php.ini, change

    pdo_mysql.default_socket = /path/to/mysql.sock
    

    If you dont have access to it, change the the instanciation of the pdo-object like described under PDO_MySQL Connection

    $db = new PDO('mysql:unix_socket=/path/to/mysql.sock;dbname=testdb');
    

    You probably must change/add some settings here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simply downloaded my joomla+virtuemart files from the server and the mysql file
I have had this problem before on WAMP Server and PHP 5.3 , and
I have this php code that is aimed for importing all rows and columns
I'm getting this problem: PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable
Possible Duplicate: PHP Curl script to pull data from remote server every 10 minutes
I'm running PHP 5 and MySQL 5 on a dedicated server (Ubuntu Server 8.10)
Actually in one of my project i need to read images from remote server
Hi I'm getting strange feedback from the feedback sandbox server. Actually there should be
I have a PHP script that works by calling items from a database based
I have this form set up on my website: http://cssrevolt.com/upload/files/protoform/ It's all customized and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.