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)
-   -   MYSQL databases keeps CRASHING on my new server! (https://gfy.com/showthread.php?t=146588)

GFED 06-24-2003 06:38 PM

MYSQL databases keeps CRASHING on my new server!
 
I've been moving all my sites to my new server. I noticed that some of them were losing traffic, and the MYSQL database was corrupted for my trading script. I thought it was a problem with that script and changed to a different script... after a day or so, THAT MYSQL DATABASE CRASHES TOO!

Has anyone else experienced these problems?


PLEASE HELP! :helpme

Backov 06-24-2003 06:38 PM

What OS?

Jamie 06-24-2003 06:39 PM

Your host should be able to help you if you have a managed account.

GFED 06-24-2003 06:40 PM

Redhat 7.2

KidCock 06-24-2003 06:40 PM

Post some details like OS, mysql version and anything from server.err that is helpful ;p

GFED 06-24-2003 06:47 PM

MYSQL - 4.0.13
PHP - 4.3.1
APACHE - 1.3.27 (Unix)

example of error:

http://ilovetitties.com/tgp/ttt-out....t=50&link=potd

GFED 06-24-2003 06:49 PM

Traffic Drive sites last about one or two days then I get a connection error and garbage in the HURL table...

TTT gives me the error I posted above... this site was working for about a day or two also...

JFPdude 06-24-2003 06:49 PM

GFED make sure your not taking a database from an i686 architure and putting it on i386 or vice versa

if so dump the database and reimport it

Also check that the my.cnf files on both servers are setup the same.

My :2 cents:

GFED 06-24-2003 06:51 PM

Quote:

Originally posted by JFPdude
GFED make sure your not taking a database from an 1686 architure and putting it on 1386 or vice versa

if so dump the database and reimport it

Also check that the my.cnf files on both servers are setup the same.

My :2 cents:

The databases have been created in Cpanel and all entries were reentered by hand... what directory is my.cnf in?


Thanks

JFPdude 06-24-2003 06:53 PM

Quote:

Originally posted by GFED


The databases have been created in Cpanel and all entries were reentered by hand... what directory is my.cnf in?


Thanks

usually it is /etc/my.cnf or /usr/local/etc/my.cnf ... but it all depends on your setup

run this command to find it:

find / -name my.cnf

:winkwink:

GFED 06-24-2003 07:01 PM

my old box didn't have that file, the new one has it and contains this...

[mysqld]
set-variable = max_connections=500

JFPdude 06-24-2003 07:03 PM

Quote:

Originally posted by GFED
my old box didn't have that file, the new one has it and contains this...

[mysqld]
set-variable = max_connections=500


You should have your admins take a look at the differences between both setups then ....

GFED 06-24-2003 07:09 PM

Quote:

Originally posted by JFPdude



You should have your admins take a look at the differences between both setups then ....

I AM the admin... :(

JFPdude 06-24-2003 07:09 PM

Quote:

Originally posted by GFED


I AM the admin... :(

Hit me up on ICQ 4433144

Juicy D. Links 06-24-2003 07:11 PM

Quote:

Originally posted by JFPdude


Hit me up on ICQ 4433144

do as he said , if he cant help you nobody can

KidCock 06-24-2003 07:16 PM

error number 145 is when your records are corrupt.

Shutdown the DB, then run

myisamchk -ar *.MYI in your data directory

should fix the problems, if not you might need the -e or -o flags on the myisamchk (or isamchk, depending what you're using)

Then restart and everything should be cool

vending_machine 06-24-2003 07:36 PM

Quote:

Originally posted by KidCock
error number 145 is when your records are corrupt.

Shutdown the DB, then run

myisamchk -ar *.MYI in your data directory

should fix the problems, if not you might need the -e or -o flags on the myisamchk (or isamchk, depending what you're using)

Then restart and everything should be cool

You don't even have to shut down the database, in the mysql client do:

Code:

use database;
repair table ttt_links;

However, it's a bad sign that your databases are corrupt after only that short a time. Has your server crashed during all of this?

KidCock 06-24-2003 07:43 PM

Quote:

Originally posted by vending_machine


You don't even have to shut down the database, in the mysql client do:

Code:

use database;
repair table ttt_links;

However, it's a bad sign that your databases are corrupt after only that short a time. Has your server crashed during all of this?

I've learnt from experience that most times when I repair corrupted tables while it's running, it doesn't fix them..

GFED 06-24-2003 07:44 PM

Thanks for everyone's help! JPFdude has took a look at my boxes and determined that the # of connections was too low on my new box and kept corrupting my MYSQL databases.


Thank you all for your quick help and responses! Without GFY all my shit would have died!

m4tt 06-24-2003 09:21 PM

Quote:

Originally posted by KidCock


I've learnt from experience that most times when I repair corrupted tables while it's running, it doesn't fix them..

So lock it first : )

How much traffic you getting through that script? Maybe someone just needs to learn how to make better indexes : )


All times are GMT -7. The time now is 05:03 AM.

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