Jump to content

can someone solve this ?


powerpower1

Recommended Posts

my script is not connecting to my database, i get this error

 

Warning: mysql() [function.mysql]: Access denied for user 'apache'@'localhost' (using password: NO)

 

when i installed the script it did build the info in the database, but its not connecting to it when you run the script......please keep in mined that the script is encoded, so i cant change the code, this script works perfect on other peoples websites, im just the only one having a problem, but why is it going to use 'apache'@'localhost' .....it should use root.....any idea how to fix it ?

Link to comment
https://forums.phpfreaks.com/topic/55180-can-someone-solve-this/
Share on other sites

There are a few directives relating to mysql's default values.... look for....

 

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
mysql.default_port =
mysql.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =
; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =
; Default password for mysql_connect() (doesn't apply in safe mode).
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
mysql.default_password =

<xml>

<section name="DATABASE CONFIGURATION">

<field type="select" name="db_type" text="Select your database type">MySQL<enum val="MySQL">1</enum>

</field>

<field required="1" type="edit" name="db_host" text="Your database host (it may be an IP address)">localhost</field>

<field required="1" type="edit" name="db_login" text="Your database username">DATABASE NAME</field>

<field type="edit" name="db_pswd" text="Your database password">PASSWORD</field>

<field required="1" type="edit" name="db_name" text="Database name">USER NAME</field>

</xml>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.