User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 392,267 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 2,749 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:
Views: 1357 | Replies: 1
Reply
Join Date: Jun 2006
Posts: 1
Reputation: explorefreedom is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
explorefreedom explorefreedom is offline Offline
Newbie Poster

Help Help! Don't Know How to Edit includes/config.inc file!!

  #1  
Jun 15th, 2006
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
Last edited by cscgal : Jun 22nd, 2006 at 9:19 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: no idea
Posts: 63
Reputation: trafficman is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
trafficman's Avatar
trafficman trafficman is offline Offline
Junior Poster in Training

Re: Help! Don't Know How to Edit includes/config.inc file!!

  #2  
Jun 18th, 2006
$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 ?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MySQL Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 7:40 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC