Problem connecting to MySQL

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Thu Sep 14, 2006 5:18 pm    Post subject: Problem connecting to MySQL Reply with quote

First of all:

1) All the database details are correct.
2) this has worked perfectly up until today.

Every time I run a php script that uses mysql, the mysqld application terminates and I get a php error message
eg:
Code:
select * from v2_posts where forum = 1 and reply = 0 order by last_reply desc
Lost connection to MySQL server during query


I can access mysql though the command prompt, but not php
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Sep 14, 2006 5:42 pm    Post subject: Reply with quote

Have you tried restarting the pc and/or reinstalling mysql/php?
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Thu Sep 14, 2006 6:47 pm    Post subject: Reply with quote

AbyssUnderground wrote:
Have you tried restarting the pc and/or reinstalling mysql/php?


Yep
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Fri Sep 15, 2006 6:11 am    Post subject: Reply with quote

try repairing and optimizing those tables including v2_posts in mysql administrator
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Fri Sep 15, 2006 4:20 pm    Post subject: Reply with quote

I can optimize all the tables EXCEPT v2_posts, it just loses the conenction
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Sep 16, 2006 12:46 pm    Post subject: Reply with quote

Mikor wrote:
I can optimize all the tables EXCEPT v2_posts, it just loses the conenction


Try using MySQLAdmin to perform these tasks.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Sat Sep 16, 2006 3:58 pm    Post subject: Reply with quote

aprelium wrote:
Mikor wrote:
I can optimize all the tables EXCEPT v2_posts, it just loses the conenction


Try using MySQLAdmin to perform these tasks.


Nope, still loses the connection
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Sep 17, 2006 3:08 pm    Post subject: Reply with quote

Mikor,

We recommend that you post the question in that case on a specialized forum (MySQL.com). MySQL gurus will certainly help you with that odd problem.

Please keep us updated about it.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Sun Sep 17, 2006 5:30 pm    Post subject: Reply with quote

Right, i've asked here and included a link to this topic, hopefully this will be fixed soon.
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Mon Sep 18, 2006 4:12 am    Post subject: Reply with quote

In the meantime, try cloning the table v2_posts and renaming the old problematic one to something else. Then rename the clone to v2_posts. See if you can now repair and optimize the cloned one and check if your systems work properly now.

When doing your cloning and if the table v2_posts is not that big, try dumping its contents in an external SQL file. And then restore that SQL file to your new empty clone table. Hopefully, when you dump from the original table v2_posts, this wouldn't lose connection. If it does lose connection, see if you can manually mine data from v2_posts. If you are even unable to open v2_posts - even in MySQL Query Browser - then your table seems gravely corrupted. Don't worry though, as hope is not all lost. You can wait for more authoritative responses from the MySQL forum.

If you're too afraid to clone a table in the same database, then you could consider cloning the entire database and renaming the old database to something else, then renaming the cloned database to the working database name.

These steps make it easy for you to revert to your old but problematic table/database, then trying later on a new solution.
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Fri Sep 22, 2006 4:23 pm    Post subject: Reply with quote

Not even the MySQL guru's can fix my problem - my database appears to be lost forever :(

And I didnt make a backup, OR write down the database structure, damn, i'll have to re-code my forum system from scratch... again.
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group