Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 08:39:39 PM

Pages: [1]   Go Down
  Print  
Author Topic: Copy of existing website not working  (Read 1266 times)
barryjacq
Trekkie
**
Offline Offline

Posts: 13


« on: July 14, 2006, 10:58:00 AM »

I have just made a copy of a working website over to a different domain name. I copied the structure of the original database and some of the important data.
However, when I upload the files to the new website I get the following error message:
1046 - No database selected

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

[TEP STOP]
Any ideas what is causing this?
Logged
Nibbler
21st century digital boy
Master Jedi
*****
Offline Offline

Posts: 1178



WWW
« Reply #1 on: July 14, 2006, 01:10:51 PM »

http://www.oscommerce.info/kb/osCommerce/General_Information/Common_Problems/69

Did you recreate the db users exactly as they were before?
Logged

Missing since 1983

barryjacq
Trekkie
**
Offline Offline

Posts: 13


« Reply #2 on: July 15, 2006, 10:10:56 AM »

I created a database user, set the password in the cpanelX  MySQL Account Maintenance screen, and used the same username and password in the include/configure.php file as follows:
  define('DB_SERVER_USERNAME', 'USERNAME');
  define('DB_SERVER_PASSWORD', 'PASSWORD');
Do I need to put this information somewhere else as well?
« Last Edit: July 15, 2006, 10:53:28 AM by RyanJ » Logged
philvis
Master Jedi
*****
Offline Offline

Posts: 1063


« Reply #3 on: July 15, 2006, 10:28:59 AM »

You might still need to add the user to the database. It's an extra step.

Your password is showing on a public forum btw.
Logged

JamesG
Web Designer UK
Berserker Poster
*****
Offline Offline

Posts: 12038


Web Designer


WWW
« Reply #4 on: July 16, 2006, 03:10:09 AM »

http://www.lunarforums.com/forum/index.php?topic=21575.0

see this thread.
Logged

barryjacq
Trekkie
**
Offline Offline

Posts: 13


« Reply #5 on: July 16, 2006, 10:26:13 AM »

We have gone through all the procedures as listed and stilll we get the error message.
(By the way, the password shown is not the real one, just an example).
Logged
katrina1
Guest
« Reply #6 on: July 16, 2006, 10:56:09 AM »

Hi. Did you copy it to another domain on the same a ccount or a new account? We would need to know the domain names involved to help too. Be sure for the database name and username, you added the cpanel username_ to the beginning of them in your configure files. They should look exactly as you see in Cpanel, Mysql and the user must be added to the database.

If this is for oscommerce, there are 2 files to put them in; includes/configure.php and admin/includes/configure.php
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: