hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : MYSQL bulk table repair
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

MYSQL bulk table repair

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-19-2002, 05:49 AM
tuvok tuvok is offline
Junior Guru Wannabe
 
Join Date: Oct 2001
Posts: 92

MYSQL bulk table repair


Hi Guys/Gals

Some help please :-)

I am trying to repair all the tables in ALL the databases on my Mysql server.

from #../../mysql/bin

./myisam-recover=#

or
./ myisam -r *.MYI

all this is not working, any ideas?

__________________
"I believe there is a global need for perhaps five computers."
(Thomas Watson, IBM boss, 1943)

Reply With Quote


Sponsored Links
  #2  
Old 08-20-2002, 01:33 PM
nexcess.net nexcess.net is offline
Junior Guru
 
Join Date: Oct 2001
Location: Ann Arbor, MI U.S.A.
Posts: 217
We use the following startup script to do it:

Code:
#!/bin/bash
#
# mysqld        This shell script takes care of starting and stopping
#               the MySQL subsystem (mysqld).
#
# chkconfig: - 68 12
# description:  MySQL database server table checker
# processname: mysqld.check

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

MYSQL_DATADIR='/path/to/mysql/data/dir'

# See how we were called.
case "$1" in
  start)
    find $MYSQL_DATADIR -name "*.MYI" -print | xargs myisamchk --silent --fast -
-recover
    ;;
  stop)
    ;;
  *)
    echo $"Usage: $0 {start|stop}"
    exit 1
esac

exit $?
Chris

__________________
Chris Wells [clwells - at - nexcess.net]
Nexcess - Beyond Hosting
Dearborn, MI DC ● Southfield, MI DC
Wordpress Hosting, Magento Hosting & More!

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Monday Demo: SiteLock's Website Malware Scanning Tool Blog 2012-02-20 12:56:19
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?