MySQL Error
Moderators: Developers, Moderators
-
- Posts: 12
- Joined: Wed Jan 26, 2005 11:00 pm
MySQL Error
Hi,
I need help here coz I'm a newbie in using MySQL ... so here are some of the info:
OS: FreeBSD 5.1
MySQL: mysql-server-4.1.0_1
Please refer below for the contents of my cacti.sql file.
The following errors appear when I execute mysql cacti < cacti.sql
ERROR 1064 at line 5: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'hash varchar(32) NOT NULL default '',
name varchar(255) NOT N
***INSIDE MY CACTI.SQL FILE ***
CREATE TABLE cdef (
id mediumint(8) unsigned NOT NULL auto_increment,
hash varchar(32) NOT NULL default '',
name varchar(255) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY ID (id),
KEY id_2 (id)
) TYPE=MyISAM;
Need you help and expertise in this matter.
Thank you.
Deejay
I need help here coz I'm a newbie in using MySQL ... so here are some of the info:
OS: FreeBSD 5.1
MySQL: mysql-server-4.1.0_1
Please refer below for the contents of my cacti.sql file.
The following errors appear when I execute mysql cacti < cacti.sql
ERROR 1064 at line 5: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'hash varchar(32) NOT NULL default '',
name varchar(255) NOT N
***INSIDE MY CACTI.SQL FILE ***
CREATE TABLE cdef (
id mediumint(8) unsigned NOT NULL auto_increment,
hash varchar(32) NOT NULL default '',
name varchar(255) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY ID (id),
KEY id_2 (id)
) TYPE=MyISAM;
Need you help and expertise in this matter.
Thank you.
Deejay
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
What version of Cacti?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
-
- Posts: 12
- Joined: Wed Jan 26, 2005 11:00 pm
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
That is just the cactid faster poller.
What version of cacti are you running?
What version of cacti are you running?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
-
- Posts: 12
- Joined: Wed Jan 26, 2005 11:00 pm
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
No, you couldn't have, that is just the cactid poller. You had to of install cacti to even consider using cactid.
Please check again.
At this point, I can only assume you are using cacti 0.8.6c.
Concerning you SQL error, that shouldn't happen, please reinstall from source, http://www.cacti.net/downloads/cacti-0.8.6c.tar.gz, and let me know if you still have the problem.
Please check again.
At this point, I can only assume you are using cacti 0.8.6c.
Concerning you SQL error, that shouldn't happen, please reinstall from source, http://www.cacti.net/downloads/cacti-0.8.6c.tar.gz, and let me know if you still have the problem.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
-
- Posts: 12
- Joined: Wed Jan 26, 2005 11:00 pm
Hi Rony,
I am still having problems on my SQL
mysql cacti < cacti.sql
ERROR 1064 at line 5: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'hash varchar(32) NOT NULL default '',
name varchar(255) NOT N
What should be the problem in here ?
Many thanks.
Deejay
I am still having problems on my SQL
mysql cacti < cacti.sql
ERROR 1064 at line 5: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'hash varchar(32) NOT NULL default '',
name varchar(255) NOT N
What should be the problem in here ?
Many thanks.
Deejay
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
I don't know, I have loaded the file multiple times on mySQL server 3.2.x series.
Try down grading mySQL? I don't know what to say...
Try down grading mySQL? I don't know what to say...
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 2 guests