PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   pp5.31 - dbbackup / bug in adm-misc.php (http://www.photopost.com/forum/photopost-pro-bug-reports/126485-pp5-31-dbbackup-bug-adm-misc-php.html)

jmar August 8th, 2006 04:36 AM

pp5.31 - dbbackup / bug in adm-misc.php
 
Hi,

i have problems to backup the pp database over acp
"adm-misc.php?admact=backup. " it tells me the following incorrect and dangerous! information:

Code:

Content visible to verified customers only.
Values for userX, passX, dbnameX are correct, i've checked it two times. the backupfolder rights are 0777

The backupscript creates for each db_table a sql-file with its tablename, but theres no sql-data in it. only a header text is in there, example: photos.sql-file
Code:

Content visible to verified customers only.
where does this Information come from? -> dbnameXphotos
whats this?-------------------------------^^^^^^^^^^ dbnametablename - there is a missing blank

cmd comes from adm-misc.php #1889 under the ADM-BACKUP part

Code:

Content visible to verified customers only.
it should be:
Code:

Content visible to verified customers only.
so, the mysqldump cmd is:
mysqldump --opt -h localhost -uuserX -ppassX dbnameXphotos > photos.sql

this create the error:
mysqldump: Got error: 1049: Unknown database 'dbnameXphotos' when selecting the database


About the check of filesize 0 byte: i´ve seen there is a check of filesize bigger 0byte, but this do not work, because each (from mysqldump) created sqlfile is always bigger than 0 bytes, because of the fileheader)

Code:

Content visible to verified customers only.
please, think about, you can't check on this way.


sorry for my english.

thanks + greetings from Germany
Tom

Chuck S August 8th, 2006 06:49 AM

The dump command we use works if you test it with ssh. You need to place the proper database name in there. This does not work on all servers hense it says check the files to ensure things where backed up. I see this issue with alot of mysql 4.0 databases

jmar August 8th, 2006 07:16 AM

Quote:

Originally Posted by Chuck S (Post 1167581)
The dump command we use works if you test it with ssh.

Hi Chuck,
i don't know which one you use, but the dump cmd in the script adm-misc.php from Photopost Ver. 5.31 doesn't work, it won't work with any mysql version, because its a syntax failure.

Code:

Content visible to verified customers only.
=

Code:

Content visible to verified customers only.
I explained it in first post. For fixing it should be:
Code:

Content visible to verified customers only.

For fixing the bug in check zero byte, the mysqldump cmd should be:
Code:

Content visible to verified customers only.

man mysqldump:

t|--no-create-info
Don't write table creation info.


Tom


All times are GMT -5. The time now is 10:02 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97