• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share 3 cách để repair database

Admin

Well-Known Member
Staff member
Administrator
1. you need to upload repair.php from your vB zip file to your /admin directory and run this url

yourdomain.com/admin/repair.php?html=1&check=1

2. or using mysqlcheck repair for 3.23.38 and above

i.e. in shell/telnet/ssh type while mysql is running and forum is CLOSED:

mysqlcheck -r -u mysqlusername -p databasename

3. or via myisamchk repair functions while mysql is shutdown/stopped in shell/telnet/ssh type :

myisamchk -r -u root -p tablename

option #3 most likely requires server and mysql root access to first stop mysql and then run myisamchk repair options.

***

More info on myisamchk from the man page:

Invoke myisamchk like this:

shell> myisamchk [options] tbl_name ...

The options specify what you want myisamchk to do. They are described in the following sections. You can also get a list of options by invoking myisamchk --help.

With no options, myisamchk simply checks your table as the default operation. To get more information or to tell myisamchk to take corrective action, specify options as described in the following discussion.

tbl_name is the database table you want to check or repair. If you run myisamchk somewhere other than in the database directory, you must specify the path to the database directory, because myisamchk has no
idea where the database is located. In fact, myisamchk does not actually care whether the files you are working on are located in a database directory. You can copy the files that correspond to a database
table into some other location and perform recovery operations on them there.

You can name several tables on the myisamchk command line if you wish. You can also specify a table by naming its index file (the file with the .MYI suffix). This allows you to specify all tables in a
directory by using the pattern *.MYI. For example, if you are in a database directory, you can check all the MyISAM tables in that directory like this:

shell> myisamchk *.MYI

If you are not in the database directory, you can check all the tables there by specifying the path to the directory:

shell> myisamchk /path/to/database_dir/*.MYI

You can even check all tables in all databases by specifying a wildcard with the path to the MySQL data directory:

shell> myisamchk /path/to/datadir/*/*.MYI

The recommended way to quickly check all MyISAM tables is:

shell> myisamchk --silent --fast /path/to/datadir/*/*.MYI

When using vBulletin 3:

Go right down to the bottom of the Admin CP to "Import & Maintenance", and select the option "Repair / Optimize Tables". Next, select the checkbox "Check All" or the specific table which is corrupt or damaged. At "Options" you may change the option for "Optimize Tables" to no, but this is an optional step. Now click the button "Continue", it should repair your damaged table(s).

Using PhpMyAdmin:

Go into PhpMyAdmin and type the following query in the SQL box:

REPAIR TABLE tablename

Source Vbulettin.com
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
H Chỉ em cách đăng ký dịch vụ VAS & 3G cho khách hàng Mobifone để nhận hoa hồng? Thông tin các mạng di động 3
Tuzoro Cách để SEO từ khóa lên TOP Google tìm kiếm Thảo luận SEO 1
Admin 8 cách quan trọng nhất để tăng thứ hạng alexa Thảo luận SEO 0
KhangSkull Android Sau 7 tháng kể từ ngày ra mắt, Nexus 4 vẫn là cách tốt nhất để trải nghiệm Android Android, iOS 0
S Cách sử dụng Safe Mode để sửa lỗi trên Windows Tin tức CNTT 0
Admin Hướng dẫn cách xác định vị trí file php.ini chính xác để chỉnh sửa VPS & Dedicated Server 0
W Cách để google index nhanh trong khoản 3 phút Thảo luận SEO 0
H Hướng dẫn Cách làm nhẹ bộnhớ trong để có thể càinhiều app Android, ios, java, windows phone 1
blog4me Hướng dẫn cách tránh thôi miên để tránh bị lừa đảo Sách, truyện, tài liệu 2
H Share Cách khắc phục các lỗi khi kiểm tra w3c validator để seo tốt hơn Phpbb3x 0
blog4me Thảo luận 20 cách để học tốt PHP PHP 0
Myshare Hướng dẫn Cách khắc phục các lỗi khi kiểm tra w3c validator để seo tốt hơn Thảo luận SEO 1
Myshare Hướng dẫn Cách lấy Authorize code để transfer domain quốc tế Hosting / Domain 0
Admin 10 cách coding để seo tốt hơn Thảo luận SEO 0
Yeukodamnoi Hỏi Có cách nào mới để rename nick facebook quá 5 lần không Mạng internet 2
Admin [Tut] cách chọn size để ship đồ Tut, tool, mmo 0
Admin Cách học SEO để trở thành chuyên gia SEO Thảo luận SEO 0
Admin 51 "mẹo" để cải thiện rank website theo cách riêng của bạn Thảo luận SEO 2
Admin Cách đơn giản để phát hiện có người sử dụng máy tính của bạn Sử dụng, chia sẻ, hỏi đáp 0
Admin 10 cách SEO để tăng tần suất crawler tìm kiếm Thảo luận SEO 0
congtust24 Cách lấy Authorize code để transfer domain quốc tế Hosting / Domain 0
S Vẫn có cách để không tăng giá xăng? Tin tức, sự kiện thường ngày 0
S Không để "loạn" cách tính giá xăng dầu Tin tức, sự kiện thường ngày 0
Admin Danh sách dofollow blogs pagerank cao và cách tốt nhất để sử dụng Thảo luận SEO 0
Admin 7 cách để vào top alexa 250.000 trong vòng một tuần Thảo luận SEO 0
Admin Sites linking là gì, cách để tăng Thảo luận SEO 0
Hailan Có ai biết cách phòng chữa để không bị hack wapego không Wap builder, wapego, xtgem, wen.ru, wapka, wap4 4
B 28 cách để khiến một cô nàng mỉm cười Thảo luận chung 0
Admin Cách để bài viết mới index nhanh trên google Thảo luận SEO 0
Admin Cách disable tất cả các plugin, mod để vào admincp trong trường hợp diễn đàn bị lỗi Vbulletin 9
katy Android Có MFY MobiFone – Tết không khoảng cách, Gắn kết tình thân Điện thoại di động 12
T Cách thêm avatar vào khung ảnh cực kỳ đơn giản trên myFrame.vn Thảo luận chung 0
T Cách Thêm File robots.xtx cho web xtgem Thảo luận chung 1
katy Android Thăng hạng đặc cách cho KH MobiFone nhân dịp 30 năm thành lập Điện thoại di động 24
vinhdlp Hướng dẫn Hướng dẫn cách ứng tiền mạng Viettel đơn giản cho thuê bao Mạng internet 0
Admin Cách tạo logo Thiết kế đồ họa 0
cuongpro9x Cách đăng kí 4G free 3 tháng của viettel Trò chuyện linh tinh 0
cuongpro9x Cách mở tài khoản số đẹp VPBank miễn phí chỉ trong 5 phút trên điện thoại Trò chuyện linh tinh 0
katy Android Cách nhận quà khi giới thiệu bạn bè sử dụng app Vietlott SMS Tin tức, giới thiệu về ĐTDĐ 10
katy Android Cách thanh toán cước trả sau trên ví điện tử MobiFone Pay nhận chiết khấu 7% Thông tin các mạng di động 12
tunglamed Các cách đổi esim MobiFone và cảnh báo lừa đảo chiếm đoạt sim thông qua đổi esim Thông tin các mạng di động 0
minhquang02 Wi-Fi 6 trang bị cho laptop và cách sự hiệu quả nhất Tin tức, sự kiện thường ngày 0
V Help Cách khắc phục tài khoản bị tạm ngưng do phá vỡ hệ thống Blogger 3
tmarketingvnn Hướng dẫn Cách Tạo Tài Khoản Trên Sàn Exness Nhanh Chóng Kiến thức lập trình 0
tunglamed MobiFone tặng miễn phí 50 phút thoại cho các tỉnh giãn cách theo Chỉ thị 16 Điện thoại di động 7
lancan Chia sẻ cách tải video tiktok không có logo Thảo luận chung 0
Admin Share cách kiếm 50$ mỗi ngày Tut, tool, mmo 1
Admin Cách kiếm tiền trên Youtube - How to get money in Youtube Tut, tool, mmo 5
Admin Hướng dẫn cách tạo mail edu miễn phí - How to get edu mail for free Tut, tool, mmo 0
Admin Cách kiếm 1000$ / tháng từ Google Adsense - AdSense Major - From ZERO to $1K Monthly Tut, tool, mmo 14

Similar threads

New posts New threads New resources

Back
Top