Closed dif1754 closed 8 years ago
I've just taken a look to the PHP log (found via the XAMP app) and this is was I found:
[[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
[17-Feb-2016 13:25:09 Europe/Berlin] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in C:\xampp\htdocs\lwt\backup_restore.php on line 83
](url)
Hello,
please change mysql_fetch_row($result)
into mysqli_fetch_row($result)
in backup_restore.php on line 83
Hi, I did it, it seems to work, there are data inside the file; but I did not make the actual RESTORE to see if everything is really restored. Hope all is ok (please, can you make the test?).
Thanks.
Hello,
I found another bug.
Change convert_string_to_sqlsyntax
into convert_string_to_sqlsyntax_nonull
in backup_restore.php on line 86 and on line 166
and make a new backup.
If you want to test, whether everything works, you can create a new table set by clicking on Default Table Set
at the bottom of index.php and load the backup
Hi I created a new Table Set, but when I try to restore the backup via LWT onto that new Table Set, the web app is waiting several seconds to import the data, too much.
After a while I try to use the program but it seems blocked: I click anywhere, then wait a lot of time, tens of seconds.... unusable.
If I delete the all the tables with "Table Set"_ with phpMyAdmin, the program start to behave normally....
I did some tests with several table set names, but the web app becomes slow......
I don't know, I guess I will use the phpmyAdmin, I feel safer and don't have those kinds of issues...
Bye
UPDATE: after I switched back to the default Table Set, the web app as was fast as usual (local db)... then I switched to the other Table Set, and also that was fast.
I don't know... maybe mySQL server was doing some internal job after the import?
Anyhow, since the restore is working on the other Table Set, I will delete that Table Set and continue to use the Default one.
Bye
UPDATE 2: for the sake of curiosity, after experiencing the slowness in the last 10 import tests, I did it once again with a new Table Set and NOW all is as fast as usual on both Table Sets...
Maybe was a personal temporary problem?
Anyhow, now it works.
Bye
Hi.
I wanted to make a backup so I used the specific LWT button:
I've opened the .sql.gz file and this is what I got (only drop and create of tables...). Where are the data?
Thanks.
-- lwt-backup-exp_version-2016-02-17-13-23-05.sql.gz