This topic is locked

Error when starting new application insubdirectory

11/22/2006 4:45:24 AM
PHPRunner General questions
B
bluestrikealpha author

Just made a new application in a subdirectory of the original site.

Gave rights for everyone (chmod 777 in linux) on the directory. Even gave dbconnection.php

separate rights with the same command (chmod 777)
How can I solve this, anyone?
Errortype 2 Description: mysql_connect() [function.mysql-connect]: Access denied for user 'upload'@'myserversIP'(using password: YES)

URL: myserversIP/upload/register.php
Errorfile: /var/www/html/upload/include/dbconnection.php

Errorline: 9
Hope to hear from you soon

Alexey admin 11/22/2006

Dion,
this error is MySQL connection related and has nothing to do with files permissions.
Some MySQL servers need different connection details when connecting from different hosts.

In most cases it's enough to change this line in include\dbcommon.php file

$host="...";

to

$host="localhost";



To avoid modifying files use Connect using PHP method in PHPRunner.
If this doesn't help contact your hosting admin to find out what details you need to use when connecting MySQL server from your site.