Results 1 to 2 of 2

Thread: PDO connection failed

  1. #1
    Addicted Member
    Join Date
    Feb 10
    Location
    Damascus - Syria
    Posts
    133

    PDO connection failed

    hello

    everything is going fine on localhost, but when going online, I get this problem:

    PDO connection: I get this error message

    Code:
    Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'rdisast_rdisast'@'localhost' (using password: YES)' in /home/rdisast/public_html/class.php:14 Stack trace: #0 /home/rdisast/public_html/class.php(14): PDO->__construct('mysql:host=loca...', 'rdisast_rdisast', '$XeB46L@e') #1 /home/rdisast/public_html/class.php(256): UNDP->__construct() #2 /home/rdisast/public_html/index.php(4): include_once('/home/rdisast/p...') #3 {main} thrown in /home/rdisast/public_html/class.php on line 14
    but I am sure the username and password are correct.

    Tha main page appears empty, but I get the previous message when I add the /index.php to the site url.
    .htaccess file content:
    Code:
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^sitecontrol - [L,NC]
    RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?lang=$1&page=$2&id=$3&pn=$4&title=$5 [L]

  2. #2
    Addicted Member
    Join Date
    Feb 10
    Location
    Damascus - Syria
    Posts
    133

    Re: PDO connection failed

    I have fixed the first problem but still need to add /index.php after the URL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •