tomliuwhite Posted March 8, 2006 Posted March 8, 2006 I will transfer oscommerce(php file and database) to another domain. So i should do some configuration. But when i want to edit catalog/includes/configure.php, i see the below source code. And i do not know what shall i do. I did not set the password before. It seems the password is encoded by oscommerce or cpanel(i use cpanel to create database). define('DB_SERVER_PASSWORD', 'eKCiH8[kLsf4'); What shall i do? Many thanks in advance.
Wendy James Posted March 8, 2006 Posted March 8, 2006 When you make your new database on your new host you will set up a new user and password. Just change the info to the new stuff. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
tomliuwhite Posted March 8, 2006 Author Posted March 8, 2006 Thanks. But i am curious why the password is 'eKCiH8[kLsf4'. Is password encoded by oscommerce or cpanel? If i create a database for oscommerce and then i set the password is "password". Can i do like this: define('DB_SERVER_PASSWORD', 'password') ? Is this safe?
jasonabc Posted March 8, 2006 Posted March 8, 2006 Thanks. But i am curious why the password is 'eKCiH8[kLsf4'. Is password encoded by oscommerce or cpanel? If i create a database for oscommerce and then i set the password is "password". Can i do like this: define('DB_SERVER_PASSWORD', 'password') ? Is this safe? Right - usually the OSC installer your ISP provides will automatically assign a random, jumbled password like the one you mention above. You can set your database password to whatever you like (as long as you tell MySQL what the new password for that user is) - although I would suggest "password" isn't very safe.... ;-) Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Wendy James Posted March 8, 2006 Posted March 8, 2006 Thanks. But i am curious why the password is 'eKCiH8[kLsf4'. Is password encoded by oscommerce or cpanel? If i create a database for oscommerce and then i set the password is "password". Can i do like this: define('DB_SERVER_PASSWORD', 'password') ? Is this safe? Since you will not be installing osCommerce through any one click install kind of thing when you move it to the new server when you add a database through cpanel (or whatever your new host uses) you will be able to assign it a user name and a password, then just use that information for the configure.php files replacing what you have now. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
tomliuwhite Posted March 8, 2006 Author Posted March 8, 2006 Right - usually the OSC installer your ISP provides will automatically assign a random, jumbled password like the one you mention above. You can set your database password to whatever you like (as long as you tell MySQL what the new password for that user is) - although I would suggest "password" isn't very safe.... ;-) Thanks. I just want to make sure. If i add a new username(test) and password(password), then i can change the code:define('DB_SERVER_PASSWORD', 'eKCiH8[kLsf4') to define('DB_SERVER_USERNAME', 'test'); define('DB_SERVER_PASSWORD', 'password'); Right?
jasonabc Posted March 8, 2006 Posted March 8, 2006 Thanks. I just want to make sure. If i add a new username(test) and password(password), then i can change the code:define('DB_SERVER_PASSWORD', 'eKCiH8[kLsf4')to define('DB_SERVER_USERNAME', 'test'); define('DB_SERVER_PASSWORD', 'password'); Right? right ;-) Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
tomliuwhite Posted March 8, 2006 Author Posted March 8, 2006 right ;-) Thanks. Please let me ask another question. How dose the OSC installer your ISP provides automatically assign a random, jumbled password? Actually i install oscommerce through a function named Fantastico on cpanel. Feature of Fantastico Use Fantastico to automatically install any of the scripts listed on the left. Installing any script will use one of your available MySQL databases. Removing any script will free up one of your used MySQL databases
jasonabc Posted March 8, 2006 Posted March 8, 2006 Thanks. Please let me ask another question. How dose the OSC installer your ISP provides automatically assign a random, jumbled password? Actually i install oscommerce through a function named Fantastico on cpanel.Feature of Fantastico Use Fantastico to automatically install any of the scripts listed on the left. Installing any script will use one of your available MySQL databases. Removing any script will free up one of your used MySQL databases Right - some ISP's make OSC available through Fantastico. Usually you just have to tell it where to install your store and it will do the rest. It will create the database, user and passwords you need for OSC (on the database side). To gain access to the database from then on - simply open /includes/configure.php. The newly assigned database name, username and password are down there at the bottom ;-) Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
tomliuwhite Posted March 8, 2006 Author Posted March 8, 2006 Right - some ISP's make OSC available through Fantastico. Usually you just have to tell it where to install your store and it will do the rest. It will create the database, user and passwords you need for OSC (on the database side). To gain access to the database from then on - simply open /includes/configure.php. The newly assigned database name, username and password are down there at the bottom ;-) Thanks for your help!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.