MySQL Forums
Forum List  »  Newbie

Re: Corruptions like crazy
Posted by: Andrew Grimo
Date: April 30, 2015 02:42PM

Glad to hear converting the tables to innodb worked well for you. The output of your mysqld.log file on the startup looks much better now.

Answer for Q1: Likely, you're phpMyAdmin backup is taken using a facility like mysqldump. Since phpMyAdmin can't necessarily handle large files, as your database grows, it may not be able to process the restores.

Backup script
# mysqldump -uroot -pMyRootPassword --databases musiciansjamnetwork | gzip -c > backup-$(date +"%Y-%m-%d_%H-%M").gz

Restore script (assuming the script above produced this date_time)
# gunzip backup-2015-04-29_03-03.gz
# mysql < backup-2015-04-29_03-03
or
# gunzip backup-2015-04-29_03-03.gz | mysql

You should also test your backup so that you know how it works, and that it works.

Answer for Q2: You don't really need to run mysqlcheck....so often. You could run it once a week maybe and add the --optimize flag which will defrag your table files and reorder your primary indexes, but is only beneficial if your tables are going through lots of changes such as inserts and deletes. It's your call.

Answer for Q3: The service named httpd is your apache web server...not the database. However, when it is stopped, it will no longer send traffic to your database. But that doesn't stop the database. The service named mysqld (or mysql depending on your rpm install) is the database itself. With Innodb tables, you shouldn't need to stop your database any more for maintenance activities. If you upgrade the database using the yum package manager, you should stop your database for that activity though.

Enjoy!
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
April 30, 2015 10:19AM
April 30, 2015 01:45PM
Re: Corruptions like crazy
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.