Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
pimpoff
New Member
New Member



Joined: Sep 25, 2003
Posts: 21

PostPosted: Sun Oct 19, 2003 3:02 pm Reply with quote

Hello, hm about 2 days ago I noticed that the usual backup that I make everday recieves an error now.

Basically a while ago I made a simple shell script to make backups. here it is:

echo "Enter password:"
read password
mysqladmin -h localhost -u root flush-tables --password=$password
mysqldump -h localhost -u root --add-drop-table --extended-insert nuke > nuke.sql.`date +"%m%d%y"` --password=$password

---------------------------------------------------

Now if I run the script i recieve the following:

mysqldump: Can't get CREATE TABLE for table 'nuke_msanalysis_online' (Can't open file: 'nuke_msanalysis_online.MYI'. (errno: 145))
---------------------------------------------------------------------------------

that file is there, and the permissions seem to be right just like for the other files. But umm will this error be a problem if I want to in the future use a backup?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Oct 19, 2003 3:06 pm Reply with quote

That looks like the table needs repairing. Run a REPAIR TABLE either using phpMyAdmin or through MySQL command line.
 
View user's profile Send private message
pimpoff







PostPosted: Sun Oct 19, 2003 3:31 pm Reply with quote

I am looking for that option with phpmysqladmin umm not finding it.. what would the command be to do it from the command line?
 
Raven







PostPosted: Sun Oct 19, 2003 4:07 pm Reply with quote

In phpMyAdmin pull up the listing of all tables by selecting your database. Then select the table to be acted upon. Then at the bottom of the list, there should be a drop down box with several options of which repair should be one of them.
 
pimpoff







PostPosted: Sun Oct 19, 2003 6:34 pm Reply with quote

Thanks alot raven that worked, sorry I really didn't see it at the bottom.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©