You are not logged in.
Hi,
I have updated my glpi to 9.3 and i have this message :
388 tables not migrated to InnoDB engine.
What should i do to fix this ?
Thanks,
Valentin.
Offline
Hi
Goto ./glpi/scripts/ and run "php innodb_migration.php"
Offline
Ok it's work
big thanks
Offline
Thank's for you help!
Offline
Thanks for the help
Offline
I am using the GLPI version for the WIndows system. I can not run the php innodb_migration.php script. I am trying to run in the following way: I run Firefox and type: localhost / glpi / scripts / innodb_migration.php and display the error 403
Thanks,
Mirek
Offline
@nimek20
on windows you can execute the script with command line (administrator privilege)
The command is still
Goto (cd) ./glpi/scripts/ and run "php innodb_migration.php"
Maybe php.exe (it must be in path or use an absolute path)
Offline
@Administrator
It works! Thank's for you help!
Offline
i should run http://myglpiip/glpi/scripts/innodb_migration.php in browser (linux instalation)?
GLPI 9.4.4 + FusionInventory 9.4+1.1 on Ubuntu 18.04
Offline
It works for me.
Thak's a lot!
Offline
Hello,
See a tip at the link below. It's in Portuguese.
Márcio Machado
Brasília-DF / Brasil
Offline
Hello,
See a tip at the link below. It's in Portuguese.
Thanks !
GLPI 9.4.4 + FusionInventory 9.4+1.1 on Ubuntu 18.04
Offline
Windows
1.Abrir Panel de Control de XAMPP
2.Click Shell
3.Ir a la Ruta de la Carpeta Script, Ejemplo: "Cd C:\xampp\htdocs\scripts" <sin las comillas
4.Teclear: "php innodb_migration.php" <sin las comillas
5. Esperar y Fin
Saludos
Offline
Hello,
I have updated my glpi to 9.3 and i have this message :
tables not migrated to InnoDB engine.
I try to start script like: http://forum.glpi-project.org/viewtopic.php?id=163853
But, I have a problem with exec innodb_migration.php script.
I try run command by ssh:
/public_html/scripts$ php innodb_migration.php
There is an error:
PHP Parse error: syntax error, unexpected '[' in /home/d/foldername/public_html/scripts/innodb_migration.php on line 36
artre:~/public_html/scripts$
How can I resolve the problem?
Offline
For information:
In line 36 there is text in file:
$args = [];
---------------------
One more - part of code in the file:
-----------------------------------------------------------
// Ensure current directory when run from crontab
chdir(__DIR__);
$args = [];
if (isset($_SERVER['argv'])) {
for ($i=1; $i<count($_SERVER['argv']); $i++) {
$it = explode("=", $argv[$i], 2);
$it[0] = preg_replace('/^--/', '', $it[0]);
$args[$it[0]] = (isset($it[1]) ? $it[1] : true);
}
}
------------------------------------------------------------
What is the reason of problem?
Last edited by Dmitry I. (2018-09-08 08:27:57)
Offline
Hello,
See a tip at the link below. It's in Portuguese.
Hi Everyone,
Someone could help in this case? I run this command to migrate all tables, but locked in the table glpi_logs and report an error that I am describing below:
Note: the table size is 9gigs
[root@serverscripts]# php innodb_migration.php
Tables found: 250
Migrating glpi_logs...DBmysql::query() in /var/www/html/glpi/inc/dbmysql.class.php line 177
*** MySQL query error:
SQL: ALTER TABLE glpi_logs ENGINE = InnoDB
Error: The table '#sql-7e95_26c' is full
Backtrace :
inc/dbmysql.class.php:206
scripts/innodb_migration.php:56 DBmysql->queryOrDie()
PHP Fatal error: Uncaught RuntimeException: - Error during the database query: ALTER TABLE glpi_logs ENGINE = InnoDB - Error is The table '#sql-7e95_26c' is full in /var/www/html/glpi/inc/dbmysql.class.php:216
Stack trace:
#0 /var/www/html/glpi/scripts/innodb_migration.php(56): DBmysql->queryOrDie('ALTER TABLE glp...')
#1 {main}
thrown in /var/www/html/glpi/inc/dbmysql.class.php on line 216
Offline
Have you free space on your database system?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Have you free space on your database system?
Hi Thanks for help, the problem was space on disk.
The table glpi_logs has 9gigs, but after migration stay with 21gigs. Do you know if it is normal?
how can I do the shrink in this database?
Thanks in advance
Willian Rocha
Offline
In tools directory (https://github.com/glpi-project/glpi/tr … ixes/tools) you have a script to clean glpi_logs in your database (cleanhistory.php)
You have example of code at the beginning of the file
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
I have a same problem for my glpi to 9.4.
305 tables not migrated to InnoDB engine.
But don't have in the folder of this file "innodb_migration.php"
"/glpi/scripts/innodb_migration.php was not found on this server"
What should i do to fix this ?
Thanks,
Last edited by MigelSan (2019-03-04 21:43:19)
Offline
@miguelSan : read this :
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
I have also the same problem when upgrading 9.3 to 9.4
i cant find also ./glpi/scripts/php innodb_migration.php
Offline
@cleomar :read this
https://glpi-install.readthedocs.io/en/ … -line.html
same problem=> same solution
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
For 9.4 working bin/console glpi:migration:myisam_to_innodb. Checked.
Offline
@cleomar :read this
https://glpi-install.readthedocs.io/en/ … -line.htmlsame problem=> same solution
Solved my problem. Tks.
Offline