SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Error needs to resolve

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'triviaso_alton'@'localhost' (using password: YES) in /home/triviaso/public_html/allark/config.php on line 8
    Could not connect to MySqlAccess denied for user 'triviaso_alton'@'localhost' (using password: YES)

    When I upload my site from local machine to hosted server

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The username, password or hostname are not correct.

    On your local machine, localhost points to your local machine.

    On your server, localhost points to your server.

    The MySQL server on your host is responding that there is no authorized user "triviaso_alton" with the password you supplied.

  3. #3
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Changed my online config.php file to the server host but still gives the same error

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'triviaso_allark'@'chief.urlnameserver.com' (using password: YES) in /home/triviaso/public_html/allark/config.php on line 6
    Could not connect to MySqlAccess denied for user 'triviaso_allark'@'chief.urlnameserver.com' (using password: YES)

  4. #4
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'triviaso_alton'@'localhost' (using password: NO) in /home/triviaso/public_html/allark/login-exec.php on line 15
    Failed to connect to server:

    Now I face this error

  5. #5
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Your hostname, username or password are still wrong. Nobody here can tell you what the right values are. Double check that whatever you set up in your hosting control panel (or directly through mysql) matches what you put in your code. Double check that the mysql server you're connecting to is actually reached at the host you put in your code (some web hosts run separate physical mysql servers from their web server, so it wouldn't be localhost).


Bookmarks

Posting Permissions

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