coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: junglejim42 on October 22, 2015, 12:03:03 PM

Title: what was my database settings
Post by: junglejim42 on October 22, 2015, 12:03:03 PM
Hi
I have just changed hosts, unfortunately I cannot remember the database name I used.  I cannot access mysql on my server to get a list of databases.  I have phpmyadmin but without the database name, I'm stuck.  is there any files in the coppermine directory that would tell me what the database name is when i installed it.

many thanks
Title: Re: what was my database settings
Post by: phill104 on October 22, 2015, 12:11:13 PM
include/config.inc.php should hold your old database details. You need to copy your database from your old host to your new host then edit these details to point to your new db.

What version of CPG are you using? You have posted in a board dedicated to CPG1.4.x which has not been supported for a long time. If you are using this version then once you have your db sorted you will need to update to the new CPG1.5.x line.
Title: Re: what was my database settings
Post by: junglejim42 on October 22, 2015, 12:17:27 PM
ver 1.4.19   yes it is old but was working fine
Title: Re: what was my database settings
Post by: junglejim42 on October 22, 2015, 12:19:19 PM
Thank you so much..  spelling error when creating the database. I am in
Title: Re: what was my database settings
Post by: junglejim42 on October 22, 2015, 12:55:09 PM
next prob:
Database downloaded from old host.    ok
database uploaded to new host...........ok

edited config.inc.php to include new localhost settings, database name and username........ok

it works, However, I get the following error message at the top of the screen repeated some 50 times

Notice: Undefined offset: 8192 in /home/cluster-sites/2/r/romft.com/public_html/coppermine/include/debugger.inc.php on line 112

Title: Re: what was my database settings
Post by: phill104 on October 22, 2015, 01:13:50 PM
Sorry, but we no longer support this version and have not done for a number of years. Why you may ask? Well we know it has a number of security issues as well as a few other issues. One of those issues is the one you are reporting, this is an incompatibility with your version of PHP. We have fixed this already, but in the CPG 1.5.x line so upgrading will not only protect you from being hacked but will also fix this error and probably a few more that will crop up due to the later version of PHP on your new host.
Title: Re: what was my database settings
Post by: junglejim42 on October 22, 2015, 01:15:41 PM
currently in debug mode.  The only noticable thing from below that i can see has caused the error message is MYSQL.  my old host was ver 4, new host is 5.  will upgrading coppermine fix the problem.

and while I was typing all this you answered the question

again many thanks


USER:
------------------
Array
(
    [ID] => aa6f2982603cefe125e8c2018a8576e7
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 8
    [user_name] => the_po_stoker
    [groups] => Array
        (
           
Title: Re: what was my database settings
Post by: junglejim42 on October 22, 2015, 01:45:33 PM
All working
again Many thanks for your help