Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Utilisation de MySQL Embedded

1 réponse
Avatar
LePhasme
Bonjour,

j'essaie de faire fonctionner la librairie MySQL Embedded depuis
plusieurs jours mais j'ai pas mal de probl=E8me.

J'essaie de faire fonctionner l'exemple 1 disponible sur le site de
MySQL =E0 cette adresse :
http://dev.mysql.com/doc/refman/5.0/en/libmysqld-example.html

J'arrive =E0 compiler sans probl=E8me, ensuite je copie la structure de
la base =E0 utiliser dans un dossier 'data' situ=E9 dans le m=EAme
r=E9pertoire que le programme mais seulement quand je lance le programme
les choses se gatent :

loris@mvision11:~/workspace/TestMysql/Debug$ ./TestMysql
InnoDB: The first specified data file
/home/loris/workspace/TestMysql/Debug/data/ibdata1 did not exist:
InnoDB: a new database to be created!
060404 10:26:03 InnoDB: Setting file
/home/loris/workspace/TestMysql/Debug/data/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
060404 10:26:04 InnoDB: Log file
/home/loris/workspace/TestMysql/Debug/data/ib_logfile0 did not exist:
new to be created
InnoDB: Setting log file
/home/loris/workspace/TestMysql/Debug/data/ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
060404 10:26:04 InnoDB: Log file
/home/loris/workspace/TestMysql/Debug/data/ib_logfile1 did not exist:
new to be created
InnoDB: Setting log file
/home/loris/workspace/TestMysql/Debug/data/ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
060404 10:26:05 [ERROR] Fatal error: Can't open and lock privilege
tables: Table 'mysql.host' doesn't exist
InnoDB: Error:startup called second time during the process lifetime.
InnoDB: In the MySQL Embedded Server Library you cannot call
server_init()
InnoDB: more than once during the process lifetime.
060404 10:26:07InnoDB: Assertion failure in thread 16384 in file
sync0sync.c line 1175
InnoDB: Failing assertion: sync_initialized =3D=3D FALSE
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/mysql/en/Forcing_recovery.html
InnoDB: about forcing recovery.
Segmentation fault

Je n'ai aucun fichier mysql.host sur mon disque donc je ne vois pas
comment r=E9soudre ce probl=E8me.
De plus je n'ai pas demand=E9 de contr=F4le des privil=E8ges donc je ne
vois pas pourquoi il me demande ce fichier...

Est-ce normal que je re=E7oive les messages d'InnoDB alors que je n'ai
pas d=E9comment=E9 les lignes relatives =E0 InnoDB dans le fichier my.cnf
?

Je pr=E9cise que j'utilise Eclipse avec le plugin CDT et que je suis
sous debian.
Si vous le souhaitez je peux vous copier/coller le code.

Tous les conseils sont les biens venus.

Merci

PS : Si vous trouvez que je ne suis pas dans le bon groupe indiquez le
moi svp.

1 réponse

Avatar
denebet
LePhasme wrote:



Tous les conseils sont les biens venus.


Tu as regardé SQLite ? Ca marche vraiment très bien.

Alain