Jump to content

Recommended Posts

Posted

Can you help me set this setting below to '-1' instead of '60'?

 

mysql.connect_timeout 60

 

I am reading someplace that this is why my connection does not happen...since the server times it out!

 

Thanks for your help in advance.

 

Please let me know what details you would need for you to do that...

 

ram

Posted

For most database problems I have a check list

 

-- databse connect ----

 

Be sure that in MySql you

 

1 - created the database

2 - created a user

3 -added the user to the database (go back to MySql and find the Add user

select the user and database, and then Add user to database)

 

 

Then to connect to the database in a script use:

 

host: localhost

database: yourCpanelName_databaseName

user: yourCpanelName_databaseUser

password: mypassword

 

* Note password is just as the password,

do not add the CpanelName to it.

 

---------------------------

 

If this is for a remote conection,

make sure you add the IP to access host in your cpanel > MySql

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...