If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
DB: cannont connect to database's  XML
Forum Index » Support Forum
Author Message
Anonymous



im useing the database version and i can not connect to the database in advance poll

my database name is forumsj_poll password forumsj_poll
url: http://www.forums.juggalohq.com/poll/

$POLLDB["dbName"] = "";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "root";
$POLLDB["pass"] = "";
$POLLDB["class"] = "class_mysql.php";


can somone please help? i think i configed it wrong because i did it like this


$POLLDB["dbName"] = "forumsj_poll ";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "forumsj_poll ";
$POLLDB["pass"] = "forumsj_poll ";
$POLLDB["class"] = "class_mysql.php";


i know im doing it wrong so please help me
Anonymous



The link you supplied returns an error message:
The requested URL /poll/ was not found on this server.

Looking at your site index, the poll directory you have includes a tilde ~, but your poll files are not in that directory:
http://www.forums.juggalohq.com/~poll

You have directories named 'textfile', 'db' and '~poll' - extremely confusing. You should just decide which version you want to use - database or textfile - and put the files for that version in a directory named 'poll'. Your directory structure then should end up like this:
  • public_html
    poll
    [list:d10057bdcf] admin
    image
    include
    (etc.)
  • [/list:u:d10057bdcf]
    If I were you, I would rename the 'db' directory to 'poll' and get rid of all the other stuff.

    For the db version, this is the error message:
    Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: NO) in /home/forumsj/public_html/db/include/class_mysql.php on line 32

    user: 'root@localhost' - The username is incorrect. You can find the correct username in CPanel. Go to the section that lists MySql databases. If you look for the forumsj_poll database, underneath it should show the authorized users.
    (Using password: NO) - I think this means you have the wrong password or no password in your config.inc.php file.

    Noticed you are using the same thing for database name, username and password. This is most likely wrong, but certainly a mistake. Database name, username and password should all be different. You need to find out the correct username and password for your poll database and redo the information in config.inc.php. If you cannot remember the password for the user, you can always create a new user with a new password and assign that user rights to the poll database.

    I hope this helps. In the future, please copy the entire error message and paste it here for help.
     
    Forum Index » Support Forum
    Go to:   
    Based on the open source JForum