On Fri, 2005-02-04 at 13:09 -0600, [email protected] wrote:
I am installing phpnuke on a site that I am working on, and having trouble configuring the config.php file.
For the dbhost should I just be putting the IP address of the server itself? Or IP/~username ? I have tried both the dbname as "dbname_nuke", and just "dbname". And the same formats for the username. No matter how I try it, I continually get an error that it cannot connect to the MySQL server. I KNOW the database is there, because I created it. All the permissions on the directories and files are exactly as it calls for in the install docs. I am using nukesql.php to help with the install. Any db gurus know about phpnuke installs? Would appreciate it.
Kurt
I would just put localhost for db host. You could always start mysql with logging on and tail the log file to see what user is trying to connect. You should see an entry like 'Access denied for user@localhost'. Also, make sure you have the user set up in the mysql table and that you have flushed privileges.
On RH you can edit /etc/rc.d/init.d/mysqld to enable logging:
$bindir/mysqld_safe --datadir=$datadir --pid-file=$pid_file - l/var/log/mysql&
Don't forget to turn off logging or set up rotating of that log file....it gets huge on an active server.
HTH,
Brad