MySQL Forums
Forum List  »  Newbie

Re: Corruptions like crazy
Posted by: Andrew Grimo
Date: April 30, 2015 10:19AM

Hi John,

Answer to question 1: Yes..you're right, I incorrectly named the file, it should be database-data.sql. In reality the files could be named anything, my naming was to give the files relevance to their contents.

You can test logging in to gain some confidence by just using the first portion of the command as below. This is simply using the 'mysql' command line client to access the database.
# mysql -uroot -p
mysql> show schemas;
mysql> use [any-database/schema-name];
mysql> select count(*) from [table-name]; (this will select the table named for the database you are "use"ing)
mysql> quit (to exit)

Answer to question 2: Disk is probably fine, your handling of things was reasonable for what you had to work with. Innodb tables are much more resilient to abuse. MyISAM tables need more care and precise fixes. For all your efforts, the tables weren't really getting fixed....switching to Innodb should solve things for you. Innodb is the right way to go anyhow.

I'm not sure how your Web Builder builds out a database, but you should also look at the parameters to make sure it creates Innodb based tables going forward. There may be an option in your configuration for it. If not, this should solve things for now.

Oh...also, correction on my upgrade instructions....use these below

The database should be running when you run your upgrade. Stop and start it after the upgrade though.

# mysql_upgrade -uroot -p
# service mysqld stop
# service mysqld start

Give this a try!

Andrew

Options: ReplyQuote


Subject
Written By
Posted
April 29, 2015 11:33AM
April 29, 2015 11:49AM
April 29, 2015 12:20PM
April 29, 2015 12:40PM
April 29, 2015 01:04PM
April 29, 2015 01:36PM
April 29, 2015 01:48PM
April 29, 2015 02:00PM
April 29, 2015 02:59PM
April 29, 2015 03:30PM
April 29, 2015 04:24PM
April 30, 2015 07:44AM
April 30, 2015 07:48AM
April 30, 2015 08:44AM
April 30, 2015 08:57AM
April 30, 2015 08:59AM
April 30, 2015 09:40AM
Re: Corruptions like crazy
April 30, 2015 10:19AM
April 30, 2015 01:45PM
April 30, 2015 02:42PM
April 30, 2015 03:36PM
April 30, 2015 07:36PM
April 30, 2015 10:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.