GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   What causes a MySQL database to hang ?? (https://gfy.com/showthread.php?t=912581)

halfpint 06-25-2009 12:04 PM

What causes a MySQL database to hang ??
 
I was activating signed up members on my dating site which is hosted with phatservers and the database just hung the index page is now just a white page and when I try and check or repair the database it gets so far and just hangs and I havent got a recent backup with all the recent registered members ..shit :(
Anybody know what the cause is or any way to fix this

sarettah 06-25-2009 12:23 PM

Quote:

Originally Posted by halfpint (Post 15998358)
I was activating signed up members on my dating site which is hosted with phatservers and the database just hung the index page is now just a white page and when I try and check or repair the database it gets so far and just hangs and I havent got a recent backup with all the recent registered members ..shit :(
Anybody know what the cause is or any way to fix this

Are you trying to do the check/repair through phpmyadmin or are you in on ssh?

halfpint 06-25-2009 12:23 PM

Im on the phpmyadmin

who 06-25-2009 12:25 PM

Ask for your server to be restarted.

sarettah 06-25-2009 12:30 PM

Quote:

Originally Posted by halfpint (Post 15998531)
Im on the phpmyadmin

I was having issues with a table last week. It was taking so long to check or repair that phpmyadmin was timing out.

In the front screen of phpmyadmin you can look at the processes running. If you have made several attempts at the check/repair you probably have multiple threads out there waiting for each to complete.

If you do I would get rid of all but the active process.

Once that process finishes, what I did was wrote a quick little php script to do the check table and repair table if necessary. In the script, at the start I turned off the server timeout.

The check table in my case took 6 hours to run but with the server timeout suspended it eventually reported back to the browser when it was done.

Good Luck

boneless 06-25-2009 12:39 PM

by any chance you got a log file on there thats like massive in size?

halfpint 06-25-2009 01:40 PM

I have managed to find the table that is causing the problem

Its saying it is 8.7MB in size but I cant browse it and I also have this warning at the bottom of the tables "1 May be approximate. See FAQ 3.11" I have no idea what that means

When I download the table and open it with worpad it is empty. I dont know whether to just delete the table as I cant repair / check or optimize it and I have no idea what it contains either

Killswitch - BANNED FOR LIFE 06-25-2009 01:50 PM

Hit up Moose and the fellas they should be able to help you...

Sarettah, wtf you got in that database that takes it 6 hours to check/repair?

halfpint 06-25-2009 01:52 PM

Quote:

Originally Posted by Killswitch (Post 15998946)
Hit up Moose and the fellas they should be able to help you...

Sarettah, wtf you got in that database that takes it 6 hours to check/repair?

yeah think I will I cant figure this one out and I hate pestering the tech guys ..lol

sarettah 06-25-2009 01:53 PM

Quote:

Originally Posted by Killswitch (Post 15998946)
Hit up Moose and the fellas they should be able to help you...

Sarettah, wtf you got in that database that takes it 6 hours to check/repair?

Well, we had 22 million urls in it.

I have since created a more efficient solution :thumbsup

rowan 06-25-2009 01:55 PM

You can't view mysql tables with a word processor, they're in a proprietary binary format. DON'T go deleting any tables until you're 100% sure they're corrupted to hell and back (which is probably unlikely)... and even then I'd rename them and keep them anyway.

Do you have SSH access? Or is Phat a fully managed host? If you have SSH, try this...

mysql -u <username> -p
... enter your password ...
use <database_name>
check table <table_name> <-- repeat as many times as necessary
If any tables show up errors,
repair table <table_name>

rowan 06-25-2009 01:58 PM

Also, show processlist when logged into mysql will display what's happening... this may give you a hint why things seem to be "stuck"

MySQL may also be writing an error log, in my setup it is located in the database directory and named <hostname>.err ... eg if your server is called www.mydomain.com the error log will be called www.mydomain.com.err

Here's an example of a line showing a problem with a table...

090601 13:35:35 [ERROR] /usr/local/mysql/libexec/mysqld: Table './sdqueue/pre_urlqueue_e9' is marked as crashed and should be repaired

halfpint 06-25-2009 02:02 PM

Thanks Rowan and all the other guys for helping out and giving suggestions. Im gonna let the tech guys have a look at it now before I go deleting anything and completly screw things up

halfpint 06-25-2009 03:08 PM

Good old Phatservers has fixed the problem it seems the database got corrupted

Thanks Phatservers for a great fast service :thumbsup

Killswitch - BANNED FOR LIFE 06-25-2009 03:35 PM

Quote:

Originally Posted by halfpint (Post 15999355)
Good old Phatservers has fixed the problem it seems the database got corrupted

Thanks Phatservers for a great fast service :thumbsup

Word, Phat knows their shit, I'd rather let them do it than fuck anything up even more than it is.

halfpint 06-25-2009 03:49 PM

Quote:

Originally Posted by Killswitch (Post 15999510)
Word, Phat knows their shit, I'd rather let them do it than fuck anything up even more than it is.

They sure do, and they fixed it real quick :thumbsup

XSV 06-25-2009 03:49 PM

Quote:

Originally Posted by halfpint (Post 15998954)
yeah think I will I cant figure this one out and I hate pestering the tech guys ..lol

For future reference, don't waste a minute, that's what we are here for.

You have an :error, we :helpme you.
:thumbsup

halfpint 06-25-2009 03:56 PM

Quote:

Originally Posted by XSV (Post 15999595)
For future reference, don't waste a minute, that's what we are here for.

You have an :error, we :helpme you.
:thumbsup

Thanks you guys rock :thumbsup

Killswitch - BANNED FOR LIFE 06-25-2009 04:39 PM

Quote:

Originally Posted by XSV (Post 15999595)
You have an :error, we :helpme you.
:thumbsup

Cheesiest use of smilies EVAR! :1orglaugh

:thumbsup


All times are GMT -7. The time now is 06:22 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123