Catci 1.2.26 - Import of cacti.sql fails with Error #1064 - You have error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SET SESSION sql_mode = @sqlmode;
--
-- Table structure for table 'aggregate_...' at line 2
can someone help fix this? Any suggestions
Catci 1.2.26 - Import of cacti.sql fails Error"#1064 - You have error in your SQL syntax; ....
Moderators: Developers, Moderators
Re: Catci 1.2.26 - Import of cacti.sql fails Error"#1064 - You have error in your SQL syntax; ....
It is working without any issue:
root@localhost [(none)]> create database xxtest;
Query OK, 1 row affected (0.008 sec)
root@localhost [(none)]> exit
Bye
[root@kaktus /usr/local/share/cacti_develop]# mysql -uroot -p xxtest < cacti.sql
Enter password:
What database and version you have?
root@localhost [(none)]> create database xxtest;
Query OK, 1 row affected (0.008 sec)
root@localhost [(none)]> exit
Bye
[root@kaktus /usr/local/share/cacti_develop]# mysql -uroot -p xxtest < cacti.sql
Enter password:
What database and version you have?
Let the Cacti grow!
Re: Catci 1.2.26 - Import of cacti.sql fails Error"#1064 - You have error in your SQL syntax; ....
What version of MariaDB/MySQL are you using. My guess is MySQL 8.x. if so, delete all those lines at the top, and report the details to Cacti GitHub issue list.
Before history, there was a paradise, now dust.
Re: Catci 1.2.26 - Import of cacti.sql fails Error"#1064 - You have error in your SQL syntax; ....
Im using XAMPP version 8.2.12
It is running MariaDB 10.4.32
C:\xampp\mysql\bin>mysql -V
mysql Ver 15.1 Distrib 10.4.32-MariaDB, for Win64 (AMD64), source revision c4143f909528e3fab0677a28631d10389354c491
C:\xampp\mysql\bin>
Database client version: libmysql - mysqlnd 8.2.12
Which lines need to be deleted and from which file ? Im not an MYSQL expert and need help with specific to get this working.
It is running MariaDB 10.4.32
C:\xampp\mysql\bin>mysql -V
mysql Ver 15.1 Distrib 10.4.32-MariaDB, for Win64 (AMD64), source revision c4143f909528e3fab0677a28631d10389354c491
C:\xampp\mysql\bin>
Database client version: libmysql - mysqlnd 8.2.12
Which lines need to be deleted and from which file ? Im not an MYSQL expert and need help with specific to get this working.
Re: Catci 1.2.26 - Import of cacti.sql fails Error"#1064 - You have error in your SQL syntax; ....
Remove
DELIMITER //
SET @sqlmode= "";
SET SESSION sql_mode = @sqlmode;
DELIMITER //
SET @sqlmode= "";
SET SESSION sql_mode = @sqlmode;
Let the Cacti grow!
Re: Catci 1.2.26 - Import of cacti.sql fails Error"#1064 - You have error in your SQL syntax; ....
xampp/mysql/data/my.ini --> in this file , i cannot find which/where delimiter to be remove .
this is the current mode configured for mysql :
sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTION
this is the current mode configured for mysql :
sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTION
Re: Catci 1.2.26 - Import of cacti.sql fails Error"#1064 - You have error in your SQL syntax; ....
from cacti.sql
Let the Cacti grow!
Who is online
Users browsing this forum: No registered users and 2 guests