Status
Not open for further replies.

hafizghafoor7

Banned
Banned
53
2014
13
0
i upload upload an script on my server but it give me an error like this...

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'fauahamc'@'localhost' (using password: NO) in /home/fauahamc/public_html/inc/functions.php on line 1918
Couldn't make connection.

Any help appreciated
 
14 comments
The problem is with password. As I may see from your error, you haven't set one. Does your user use password? If so, add password to that and it will work perfectly :)
 
From the way I see you're using Imgshot script.

In config.php you need to configure these lines:

Code:
define ("DB_USER", ""); // Put the mysql database username (You need first to create database user via cPanel and assign him privileges for the database)
define ("DB_PASS",""); // Set the database user's password 
define ("DB_NAME",""); // MySQL db name (You need first to create database via cPanel)
 
still same error

just modigy like this

// DATABASE CONFIGURATIONS
define ("DB_HOST", ""); // "localhost"
define ("DB_USER", ""); // "XXXXXX"
define ("DB_PASS",""); // "XXXXXX"
define ("DB_NAME",""); // "XXXXXX"
 
Last edited:
You should put it in quotes, like this - define ("DB_HOST", "localhost");
Also have you given all privileges to the mysql user ?
 
thx you so much script working now..but give me error on the top of site..please tell me how to clear..and tell me how login as admin?

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/fauahamc/public_html/inc/functions.php on line 2051
 
The default admin log ins are:
username: admin
password: admin123
(Change them as soon as you log in)

__________________
Added after 6 minutes:

You need to CHMOD 777 the following files:

  • upload
  • upload/big
  • upload/small
  • cache
  • cache/zip
  • cache/ftp
  • ipn/ipn_errors.log
 
Last edited:
The default admin log ins are:
username: admin
password: admin123
(Change them as soon as you log in)

__________________
Added after 6 minutes:

You need to CHMOD 777 the following files:

  • upload
  • upload/big
  • upload/small
  • cache
  • cache/zip
  • cache/ftp
  • ipn/ipn_errors.log

Dear sir i just do same as you said but when i login it give me error

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/fauahamc/public_html/inc/functions.php on line 2051
 
Sir please i just tried many time but could not resolve it...sir if you don't mind i give you my hosting detail so please upload this script on my site??

please....reply me, because when i try to upload it give me an error like this

parameter missing
 
Status
Not open for further replies.
Back
Top