InMotion Hosting Support Center

How to Update mysql.connect_timeout in php.ini?

Category: Databases

2013-07-28 12:34 am EST

Hits: 9,519
Hello team,

I am using VSP100 hosting I want to update mysql.connect_timeout value in php.ini.

I have the .htaccess setup to read my local php.ini file for value. I can change any other setting but the mysql.connect_timeout value. The default value is 120 second in the file, but no mater what I do, it show 10 second.

How can i update that?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



40,990 Points
2013-07-29 1:26 pm EST
Hello CanopyValley,

Thanks for the question and sorry for the problems with the MySQL timeout. The value that you need to change is actually in the my.cnf file which can only be changed with root access. I had the help of Jacob N. who is our systems teammate. He said that the recommended time for the timeout is between 15-20 seconds. He set it to 20 seconds (the socket timeout was also changed since you may be accessing the database with localhost as opposed to a remote IP address).

If you have any further questions or need further assistance, please let us know.

Arnel C.

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!