Page 2 of 2

Re: Lost connection to MySQL server at '...'

PostPosted: 09. January 2012 14:59
by kamild1996
Bump, I really need this, help!

Re: Lost connection to MySQL server at '...'

PostPosted: 09. January 2012 15:21
by JonB
You should check with your hosting service, many use tools/scripts to prevent external database connections (in both directions). This is particularly true on shared hosting plans.

good Luck
8)

Re: Lost connection to MySQL server at '...'

PostPosted: 09. January 2012 16:57
by kamild1996
JonB wrote:You should check with your hosting service, many use tools/scripts to prevent external database connections (in both directions). This is particularly true on shared hosting plans.

good Luck
8)

But this script are prepared to use XAMPP database, not database from hosting service...

Re: Lost connection to MySQL server at '...'

PostPosted: 09. January 2012 17:36
by JonB
I put PHP script (which is using my database) in my site (not in my PC - I bought a WWW hosting)


now - to ME only - that would be an outbound request from a hosted website to a remote (on our pc) database connection. But I might also not know anything.

Question - does it run ON when run on your local XAMPP box ???

If yes - I would say - this is what I described. You need to see if the problem is caused by a policy or setting at the hosting company. (and if the answer is 'yes' also this is not an XAMPP issue).

Good Luck
8)

Re: Lost connection to MySQL server at '...'

PostPosted: 09. January 2012 18:13
by kamild1996
From the beginning.
I have a database located/hosted in my PC with XAMPP.
I have a website bought on one of hosting services.
I have a script that uses a database located/hosted in my PC with XAMPP.
I put this script in a website bought on one of hosting services.

Re: Lost connection to MySQL server at '...'

PostPosted: 09. January 2012 19:54
by JonB
I got it - I got it the first time too -

"I put this script in a website bought on one of hosting services."

Does it (your script) work when you host it on XAMPP???

If "yes" then see the answer I have now posted three times...

if 'no', my script does not work on localhost, then we will try to help you.

What don't you get here??? We aren't in the position to figure out why a script on a hosted website is not working, period... We only support XAMPP on localhost or your local network - and - XAMPP is not for production environments.

Good Luck
8)