mysql database error table is marked as crashed and should be repaired

error:

XXXXXX XX:XX:XX [ERROR] /usr/libexec/mysqld: Table ‘./database/table’ is marked as crashed and should be repaired

myisamchk(1) – MyISAM table-maintenance utility

· –recover, -r

Do a repair that can fix almost any problem except unique keys that are not unique
(which is an extremely unlikely error with MyISAM tables). If you want to recover
a table, this is the option to try first. You should try –safe-recover only if
myisamchk reports that the table cannot be recovered using –recover. (In the
unlikely case that –recover fails, the data file remains intact.)

If you have lots of memory, you should increase the value of
myisam_sort_buffer_size.

· –safe-recover, -o

Do a repair using an old recovery method that reads through all rows in order and
updates all index trees based on the rows found. This is an order of magnitude
slower than –recover, but can handle a couple of very unlikely cases that
–recover cannot. This recovery method also uses much less disk space than
–recover. Normally, you should repair first using –recover, and then with
–safe-recover only if –recover fails.

If you have lots of memory, you should increase the value of key_buffer_size.

(re)solution:

# service mysqld stop

# for tbl in `grep ‘ERROR.*Table’ ~mysql/$HOSTNAME.err | awk -F\’ ‘{print $2}’` ; do myisamchk –recover $tbl ; done

# service mysqld start

FCC / National Do Not Call Registry

How-To Convert .m4a to .mp3 on Mac OS X FREE

Download:
VideoLAN – VLC: Official site – Free multimedia solutions for all OS!

File -> Convert / Stream… -> Drop media here -> Choose Profile (Audio – MP3) -> Save as File -> Browse -> Save As: (filename.mp3) -> Save -> Save

Voila!

Windows To Go – USB Stick Drive

  • DiskPart
    • select disk 1
    • clean
    • create partition primary
    • format fs=ntfs quick
    • select partition 1
    • active
    • exit
  • cp D:\sources\install.wim
  • DISM /apply-image /imagefile:[path]\install.wim /applydir:[USB_drive:]\ /checkintegrity /verify /index:# [1=Pro,2=Core]
  • Bcdboot [USB_drive:]\windows /s [USB_drive:] /f all

FAQ:

Q: DISM – Error: 87 (The apply-image option is unknown.)
A: Install latest “The Windows® Automated Installation Kit (AIK)”

Nagios (rpmbuild) Enterprise Linux

error(s):

1) /var/tmp/rpm-tmp.4HW54O: line 38: cd: nagios-3.5.0: No such file or directory
2) configure: error: unrecognized option: --datarootdir=/usr/share/nagios

Nagios Tracker – 0000468: redhat – I’m unable to use rpmbuild to build nagios-3.5.0 RPM @RHEL6 – Mantis

workaround:

tar -zxf nagios-3.5.0.tar.gz
rm nagios-3.5.0.tar.gz
mv nagios nagios-3.5.0
sed -i 's/datarootdir/datadir/' nagios-3.5.0/nagios.spec
tar -czf nagios-3.5.0.tar.gz nagios-3.5.0
rpmbuild -tb nagios-3.5.0.tar.gz
ls rpmbuild/RPMS/*/nagios-3.5.0*rpm