PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Error when attempting backup (http://www.photopost.com/forum/photopost-pro-installation-upgrades/114380-error-when-attempting-backup.html)

monkeyra June 9th, 2005 11:28 AM

Error when attempting backup
 
When I attempt to backup the table using the Database->Backup Database option, I get this error:



Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/stdriver/public_html/gallery/adm-misc.php on line 1586

Have I screwed up my upgrade? :confused:

Chuck S June 9th, 2005 12:03 PM

Have you specified the path to mysqldump and the backup directory? Is mysql on the same server as photopost?

monkeyra June 9th, 2005 01:14 PM

I've just double checked with my hosts, and yep, path to mysqldump is correct: #

root@***** [~]# whereis mysqldump
mysqldump: /usr/bin/mysqldump /usr/share/man/man1/mysqldump.1.gz

And yep, the path to the backup directory is correct.

monkeyra June 11th, 2005 06:09 AM

It now lets me click the backup function, then I get this:



Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/stdriver/public_html/gallery/adm-misc.php on line 1603
Command being used to execute dumps (specific tables are executed individually):

/home/stdriver//usr/bin/mysqldump --opt -h localhost -ustdriver_photo -pPO11636 stdriver_gallery

Results:


Warning: Invalid argument supplied for foreach() in /home/stdriver/public_html/gallery/adm-misc.php on line 1614


You should double-check your .sql files to be sure the backup completed successfully.






Then I checked in the folder, but there wasnt a backup there.

Chuck S June 11th, 2005 08:59 AM

Before lines 1585 and 1605 of adm-misc.php try adding this

$link = mysql_connect("$host:3306", "$mysql_user", "$mysql_password") or die ("I cannot connect to the PhotoPost database. [$php_errormsg]");
mysql_select_db("$database",$link)or die("Could not connect to PhotoPost database". mysql_error() );


All times are GMT -5. The time now is 04:29 AM.

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