Help: DB Exec Failed

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

Moderators: Developers, Moderators

Post Reply
i_lius
Posts: 10
Joined: Wed Sep 15, 2010 7:13 am

Help: DB Exec Failed

Post by i_lius »

Hi All,
I have these following messages, after a black out
02/01/2011 11:25:20 PM - SYSTEM STATS: Time:20.1996 Method:cmd.php Processes:2 Threads:N/A Hosts:34 HostsPerProcess:17 DataSources:1581 RRDsProcessed:0
02/01/2011 11:25:20 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'126', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1114, 'traffic_out', '2011-02-01 23:25:20', '362373268')'
02/01/2011 11:25:20 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'126', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1114, 'traffic_in', '2011-02-01 23:25:20', '2798212949')'
02/01/2011 11:25:20 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'126', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1113, 'traffic_out', '2011-02-01 23:25:20', '74290847')'
02/01/2011 11:25:20 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'126', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1113, 'traffic_in', '2011-02-01
done a few test, like rebuild cache, but doesn't help.
Tried with these command, it gives me this answer:

Code: Select all

C:\Users\Admin>mysqlcheck --auto-repair --databases cacti
mysqlcheck: Got error: 1045: Access denied for user 'ODBC'@'localhost' (using pa
ssword: NO) when trying to connect
Had this before and i had to reinstall and lost all the database... hope not to do this again this time....
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Help: DB Exec Failed

Post by BSOD2600 »

MySQL error 126 = Incorrect key file for table X. which means you need to repair it.

I'd suggest using the script in /cacti/cli/repair database... but first you need to correct your mysql root access.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest