Support > cpg1.5 miscellaneous
Restoring my Gallery
phill104:
Then you will need to upgrade to 1.6.x and that version of PHP is not supported by CPG1.5.x
https://forum.coppermine-gallery.net/index.php/topic,79013.0.html
Meghan3:
The gallery was upgraded before I downloaded the SQL for the transfer. I have tried this with files from CPG1.6x and it's still giving me the error. I even tried at one point deleting the config file and installing it as if it was all new. It let me install the gallery. I just tried doing what was said in the thread you sent me and I'm still getting the same error.
What I am trying to do is just restore all the albums and files that were within my old gallery. I know that involves downloading the SQL and I did that. I added all the files back into the gallery and didn't install a new gallery. I did that on another site and it didn't work either. This one I uploaded everything as is and then through the phpadmin uploaded the SQL from my other gallery. That is when I go that error. Then I tried all the things I listed above and nothing.
All I want to do is retore all the albums and files that I had in the gallery without having to go through and do it manually. It seems I have done something wrong.
ron4mac:
You can't use the include/config.inc.php file from your old server on the new one without changing the values to coincide with with the database to which you imported the SQL data.
--- Code: ---// Coppermine configuration file
// Database configuration
$CONFIG['dbtype'] = 'mysqli'; // Your database type
$CONFIG['dbserver'] = 'localhost'; // Your database server
$CONFIG['dbuser'] = 'old-dbuser'; // Your database username <-- these must match
$CONFIG['dbpass'] = 'old-password'; // Your database password. <-- the values/names
$CONFIG['dbname'] = 'old-dbname'; // Your database name <-- set on the new host
// DATABASE TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = 'cpg16x_';
--- End code ---
Meghan3:
--- Quote from: ron4mac on March 19, 2021, 07:27:30 pm ---You can't use the include/config.inc.php file from your old server on the new one without changing the values to coincide with with the database to which you imported the SQL data.
--- Code: ---// Coppermine configuration file
// Database configuration
$CONFIG['dbtype'] = 'mysqli'; // Your database type
$CONFIG['dbserver'] = 'localhost'; // Your database server
$CONFIG['dbuser'] = 'old-dbuser'; // Your database username <-- these must match
$CONFIG['dbpass'] = 'old-password'; // Your database password. <-- the values/names
$CONFIG['dbname'] = 'old-dbname'; // Your database name <-- set on the new host
// DATABASE TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = 'cpg16x_';
--- End code ---
--- End quote ---
To make sure I am understanding what you are saying. The user name and password for the database should be the same, but the database can be new, or should it be the old one?
I have tried with the old database information and new database information and both give me the error.
ron4mac:
If you can PM me with credentials for your site, I will help you clear up the issue(s).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version