Koozali.org: home of the SME Server

mysql connection lost [SOLVED]

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
mysql connection lost [SOLVED]
« on: February 16, 2009, 08:01:26 PM »
Hi all,

Maybe someone can help with the following:
I have 3 external sites running (2 wordpress and one simple html) all running in their own i-Bay one in primary.
I also have an internal page (wordpress initially now joomla)

The problem is that since I replaced the primary page which was a joomla page with wordpress I get mysql connection problems for either the internal or the Primary (external page)

What I did to repair the lost connection is use commandline and went into mysql and did the grant all command and flush privileges command for the database that could not be accessed. Result: the page works flawlessly again. Just ... the otherpage drops out same error.

I first thought it was connected to wordpress so I replaced one page with joomla ... dropped the old wordpress database made a new one and installed all ... worked .. but now the wordpress page is gone again.

I am thinking it may be mysql problem but am at a loss on how to fix this.

Any suggestions are very welcome!

With kind regards,

Jan
« Last Edit: February 16, 2009, 09:47:14 PM by jreijsenbach »
...............

Offline lancelott2

  • *
  • 73
  • +0/-0
  • Ich bin Lancelott2
    • Meine private Homepage
Re: mysql connection lost
« Reply #1 on: February 16, 2009, 08:10:32 PM »
Hello,

have you checkt the rights and users for each database and tooked the "granded" user and password in the configfiles of the cmses you use?

Greetings,

Lance
---------------------------------------------------------------------
Auch ich lerne noch ständig dazu!
---------------------------------------------------------------------

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Re: mysql connection lost
« Reply #2 on: February 16, 2009, 08:21:13 PM »
Hi Lance,

Yes, both have different databases and have not been changed. Once I do the Grant all command for one database the page using the other database cannot connect. If I do the grant all command on the other database the first database cannot be accessed.

I've no ideawhat can cause this... have been running severeal pages mostly joomla on this server for years and never experienced this error.

If you have any further ideas please let me know.

Kind regards,

Jan
...............

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: mysql connection lost
« Reply #3 on: February 16, 2009, 08:29:43 PM »
Hi Lance,

Yes, both have different databases and have not been changed. Once I do the Grant all command for one database the page using the other database cannot connect. If I do the grant all command on the other database the first database cannot be accessed.

I've no ideawhat can cause this... have been running severeal pages mostly joomla on this server for years and never experienced this error.

If you have any further ideas please let me know.

Kind regards,

Jan
That is strange granting privileges should not revoke this, are you sure your applications are not using the same username but with different passwords?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Re: mysql connection lost
« Reply #4 on: February 16, 2009, 08:40:20 PM »
ehhmm ...  :???: well not sure.. checking. You are right! Changed it. Now both sites are running fine.

Never realised it'd be so simple. Thanks! :-)

Kind regards,

Jan
...............

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: mysql connection lost
« Reply #5 on: February 16, 2009, 08:47:54 PM »
ehhmm ...  :???: well not sure.. checking. You are right! Changed it. Now both sites are running fine.
Nice to see you sorted things out.

Never realised it'd be so simple. Thanks! :-)
You're welcome, it was the only thing that came across my mind other than you would have hit a bug, which seemed highly unlikely to me.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)