Problem with mysql

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
krissanto
Posts: 3
Joined: Tue Oct 04, 2011 10:30 pm

Problem with mysql

Post by krissanto »

I'm experiencing a problem with mysql, there's a message error on windows server event viewer since date October 3rd, before it was fine my cacti working normally.

These are the message error :

C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: Table '.\cacti\poller_item' is
marked as crashed and should be repaired

How do i solved these problem ? :cry:
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Problem with mysql

Post by Linegod »

Google 'repair crashed mysql table window' and you will find your answer. It is not Cacti specific
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
krissanto
Posts: 3
Joined: Tue Oct 04, 2011 10:30 pm

Re: Problem with mysql

Post by krissanto »

i used these command, which i got from http://stackoverflow.com/questions/2296 ... phpmyadmin

mysql -u username -p
mysql> use dbname;
mysql> repair table tablename;

when i type "use mysqld" i got an error message unknown database :(
krissanto
Posts: 3
Joined: Tue Oct 04, 2011 10:30 pm

Re: Problem with mysql

Post by krissanto »

Solved... After looking for answer on this thread http://forums.cacti.net/viewtopic.php?f ... 5&start=15

Just type "mysqlcheck -u root -p --repair cacti" on command prompt.

1 more question if i may ask, why can't repair database mysqld.pdb ? it's keep telling me that "error opening database"
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problem with mysql

Post by TheWitness »

In MySQL 5.1 there is a my.cnf setting to autorepair MyISAM tables. You need to set it and then restart the MySQL service. Please google the setting. Post your finding here for the rest of the community.

Thanks,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests