[Cacti] Import cacti.sql impossible (en cours)

Applications, problèmes de configuration réseau
Avatar de l’utilisateur
hackman61
Hankyu
Messages : 46
Inscription : mer. 16 mars 2011, 16:45
Localisation : Alencon, Basse-Normandie

[Cacti] Import cacti.sql impossible (en cours)

Message par hackman61 »

Bonjour, je suis le tuto http://wiki.archlinux.fr/Cacti, j'en suis là :
L'étape suivante, la création de la base de données :

Code : Tout sélectionner

cd /srv/http/cacti
mysqladmin -u root -p create cacti
mysql -u root -p cacti < cacti.sql
mysql -u root -p cacti
Mais à :

Code : Tout sélectionner

mysql -u root -p cacti < cacti.sql
j'ai :

Code : Tout sélectionner

[root@ArchiTek cacti]# mysql cacti < cacti.sql -p
Enter password: 
ERROR 1064 (42000) 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 'TYPE=MyISAM' at line 6
[root@ArchiTek cacti]# 
Pourtant j'ai bien MyIsam de dispo dans mysql :
MySQL

Serveur: Localhost via UNIX socket
Version du serveur: 5.5.10-log
Version du protocole: 10
Utilisateur: root@localhost
Jeu de caractères pour MySQL: UTF-8 Unicode (utf8)
Serveur web

Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/1.0.0d DAV/2 PHP/5.3.6 with Suhosin-Patch
Version du client MySQL: mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $
Extension PHP: mysql

Donc je vois pas très bien ...

Si vous avez des idées... Merci d'avance!
[Soft]__________________________________[Matériel]

OS: Arch Linux x86_64____________________AMD Phenom(tm) II X4 840 Processor
Kernel: 3.7.4-1-ARCH _____________________12 Go DDR3
Shell: bash_____________________________1TOGo SATA --> Arch
Résolution: 1920*1080_____________________250 SATA --> Windows7
Pilote Catalyst non-libre___________________Ati Radeon HD6850 2Go Vram
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Cacti] Import cacti.sql impossible (en cours)

Message par FoolEcho »

Le premier truc qui me vient est un problème de syntaxe lié au passage à mysql 5.5. Si c'est ça, tu peux suivre le wiki anglophone déjà:
https://wiki.archlinux.org/index.php/Cacti

D'ailleurs, c'est mentionné (à supposer que ça soit la cause de ton problème bien sûr :mrgreen: mais il y a des chances puisque ça touche ENGINE/TYPE justement):
Note: As of march 2011 (mysql 5.5.9-1, cacti 0.8.7g-1) mysql fails to import the SQL due to an outdated syntax. You can update the file using this command:

Code : Tout sélectionner

cd /srv/http/cacti && mv cacti.sql cacti.sql.org && sed s/TYPE=/ENGINE=/g cacti.sql.org > cacti.sql
«The following statement is not true. The previous statement is true.» :nage:
Répondre