PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
pimpoff
New Member
New Member


Joined: Sep 25, 2003
Posts: 21

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
pimpoff
New Member
New Member


Joined: Sep 25, 2003
Posts: 21

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

I am looking for that option with phpmysqladmin umm not finding it.. what would the command be to do it from the command line?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
pimpoff
New Member
New Member


Joined: Sep 25, 2003
Posts: 21

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

Thanks alot raven that worked, sorry I really didn't see it at the bottom.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum