Back to General

Search

error error

error

by kkshansid on Tue 08/25/2009 10:32 PM

Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\forum\db.class.inc.php on line 29
i use this for my connection and works well
$conn=mysql_connect("localhost","root","");
while this doesnt work
function db($localhost='localhost',$database='ncpul1',$username='root',$password='')

kindly help as i m new to php

[Reply] [Back to Top]

error

by chris on Thu 08/27/2009 03:00 AM

I think you've got your database settings wrong. You need to have set your database details in master_config.inc.php
Have you entered the right password? Also, have you checked the install instructions because if you've installed it off your main domain name (www.mydomain.com/folder) then you need to change the .htaccess file.
Just guessing from experience that this is your problem, because i had no probs installing it, just cannot log in as admin!

[Reply] [Back to Top]

error 2!

by chris on Thu 08/27/2009 03:12 AM

Hi I've just looked again at your Q, where are you installing this? Is this a server on your pc or vps hosting? The reason i'm asking is that you've written details that you would normally use on those types of hosting rather than shared hosting. Your problem is certainly to do with the details you entered.
A typical installation would look like this:
username: localhost
database name: myhost_mydbname
Database user: myhost_myname
Password: abcdefg

The root password is often different to your hosting password.
Also not that on some free hosting accounts, you do not use localhost. You would need to check with your provider for details.

So for example on a xxamp set up on your pc, you'd be alright with localhost and user name root and password ncpul1, but on shared hosting it would be something like
localhost
sitename_ncpul1
sitename_dbname
password abcdefg

[Reply] [Back to Top]

thanx

by kkshansid on Thu 08/27/2009 10:27 PM

i set my database details in master_config.inc.php its somewhat running but not complete.i will ask if any other problem arise

[Reply] [Back to Top]

test

by 123 on Sun 09/06/2009 04:04 AM

tesst

[Reply] [Back to Top]

test

by 123 on Sun 09/06/2009 04:04 AM

testsssss

[Reply] [Back to Top]

ferzf

by Gingi on Sun 12/27/2009 05:54 AM

ferzfrez

[Reply] [Back to Top]

error

Login / Register

General

Site Index