•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 425,999 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,694 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 1458 | Replies: 1
![]() |
•
•
Join Date: Jun 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi, I'm new to this forum and hope I'm posting in the right section! I hope someone can help. I am trying to upload a website but have been advised I need to edit the includes/config.inc file. I've to edit the database name, username and password which is fine but I don't know what part I'm supposed to be editing!! Here is the contents of the file and would be grateful if someone could tell me which bits I'm supposed to edit/add?? - do I type over/add to??
Here is the content of the file
[php]<?
global $_cn;
global $dbserver;
global $db;
global $dbuser;
global $dbpass;
//mysql database server,login,password & Database name
$dbserver ="localhost";
$database_connect="loopy_one";
$dbuser ="loopy_two";
$dbpass ="three";
$connect = mysql_connect($dbserver, $dbuser, $dbpass)
or die("Couldn't connect to MySQL");
mysql_select_db($database_connect, $connect);
?>[/php]
Many thanks in advance for your help.
Lynne
Here is the content of the file
[php]<?
global $_cn;
global $dbserver;
global $db;
global $dbuser;
global $dbpass;
//mysql database server,login,password & Database name
$dbserver ="localhost";
$database_connect="loopy_one";
$dbuser ="loopy_two";
$dbpass ="three";
$connect = mysql_connect($dbserver, $dbuser, $dbpass)
or die("Couldn't connect to MySQL");
mysql_select_db($database_connect, $connect);
?>[/php]
Many thanks in advance for your help.
Lynne
Last edited by cscgal : Jun 22nd, 2006 at 9:19 pm.
•
•
•
•
$dbserver ="localhost";
$database_connect="loopy_one";
$dbuser ="loopy_two";
$dbpass ="three";
This is the part you should be editing to make changes for Mysql access.
I guess you should let localhost as your Mysql server
then you should indicate the database name instead of loopy_one
The user to connect to the DB 'loopy_two'
and the password to access the db 'three'.
You are not used to php, are you
? ![]() |
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Corrupted 'winnt\system32\config\system file... (Windows NT / 2000 / XP / 2003)
- There is an error in your config.sys file on line 2. (Windows 9x / Me)
- New: What causes corrupt Windows\System32\Config\system file? (Windows NT / 2000 / XP / 2003)
- error in config.sys file in line 1 (Troubleshooting Dead Machines)
Other Threads in the MySQL Forum
- Previous Thread: Clean database
- Next Thread: FULLTEXT index help


Linear Mode