MYSQL databases keeps CRASHING on my new server!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GFED
    Confirmed User
    • May 2002
    • 8121

    #1

    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!
    https://www.flow.page/savethechildren
  • Backov
    Confirmed User
    • Mar 2001
    • 1600

    #2
    What OS?
    <embed src="http://banners.spotbrokers.com/button.swf" FlashVars="clickURL=http://banners.spotbrokers.com" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="60"></embed>

    Comment

    • Jamie
      Confirmed User
      • Apr 2001
      • 2517

      #3
      Your host should be able to help you if you have a managed account.
      CelebPay: Promote Celebrity Reviews
      i/c/q - :1851935

      Comment

      • GFED
        Confirmed User
        • May 2002
        • 8121

        #4
        Redhat 7.2
        https://www.flow.page/savethechildren

        Comment

        • KidCock
          So Fucking Banned
          • May 2003
          • 788

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

          Comment

          • GFED
            Confirmed User
            • May 2002
            • 8121

            #6
            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
            https://www.flow.page/savethechildren

            Comment

            • GFED
              Confirmed User
              • May 2002
              • 8121

              #7
              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...
              https://www.flow.page/savethechildren

              Comment

              • JFPdude
                Confirmed User
                • Jan 2002
                • 4027

                #8
                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
                Last edited by JFPdude; 06-24-2003, 05:51 PM.

                Comment

                • GFED
                  Confirmed User
                  • May 2002
                  • 8121

                  #9
                  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
                  The databases have been created in Cpanel and all entries were reentered by hand... what directory is my.cnf in?


                  Thanks
                  https://www.flow.page/savethechildren

                  Comment

                  • JFPdude
                    Confirmed User
                    • Jan 2002
                    • 4027

                    #10
                    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

                    Comment

                    • GFED
                      Confirmed User
                      • May 2002
                      • 8121

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

                      [mysqld]
                      set-variable = max_connections=500
                      https://www.flow.page/savethechildren

                      Comment

                      • JFPdude
                        Confirmed User
                        • Jan 2002
                        • 4027

                        #12
                        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 ....

                        Comment

                        • GFED
                          Confirmed User
                          • May 2002
                          • 8121

                          #13
                          Originally posted by JFPdude



                          You should have your admins take a look at the differences between both setups then ....
                          I AM the admin...
                          https://www.flow.page/savethechildren

                          Comment

                          • JFPdude
                            Confirmed User
                            • Jan 2002
                            • 4027

                            #14
                            Originally posted by GFED


                            I AM the admin...
                            Hit me up on ICQ 4433144

                            Comment

                            • juicylinks
                              So Fucking Banned
                              • Apr 2001
                              • 122992

                              #15
                              Originally posted by JFPdude


                              Hit me up on ICQ 4433144
                              do as he said , if he cant help you nobody can

                              Comment

                              • KidCock
                                So Fucking Banned
                                • May 2003
                                • 788

                                #16
                                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

                                Comment

                                • vending_machine
                                  Confirmed User
                                  • Jun 2002
                                  • 1070

                                  #17
                                  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?

                                  Comment

                                  • KidCock
                                    So Fucking Banned
                                    • May 2003
                                    • 788

                                    #18
                                    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..

                                    Comment

                                    • GFED
                                      Confirmed User
                                      • May 2002
                                      • 8121

                                      #19
                                      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!
                                      https://www.flow.page/savethechildren

                                      Comment

                                      • m4tt
                                        So Fucking Banned
                                        • May 2003
                                        • 384

                                        #20
                                        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 : )

                                        Comment

                                        Working...