ajaxsoundscool Posted April 13, 2013 Share Posted April 13, 2013 Hi guys, Im new to coding, learning fast! I have built a simple social networking website and im trying to implement a chat system on my site.. im using this resource. http://old.ajaxim.com/ Im following the database connection and i get this error.. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'user'@'localhost' (using password: YES) in /home/guyrich/public_html/AJAX IM/install.php on line 135 Here is the code for the connection file. <? /////////////////////////////////// // ajax im 3.41 // // AJAX Instant Messenger // // Copyright © 2006-2008 // // http://www.ajaxim.com/ // // Do not remove this notice // /////////////////////////////////// // MySQL Database Configuration $sql_user = 'user'; $sql_pass = ''; $sql_host = 'localhost'; $sql_db = 'ajaxim'; // This is the prefix for the ajax im MySQL tables -- this can usually be left alone. // (If upgrading from a version < 3.1, set the prefix to '') define('SQL_PREFIX', 'ajaxim_'); $maxBuddyIconSize = 100; // in KBs, set to 0 to disable uploads ?> This may seem like a lame question, but how do i configure this to connect to my database :/ Cheers Guy Quote Link to comment Share on other sites More sharing options...
trq Posted April 13, 2013 Share Posted April 13, 2013 The error is pretty self explanatory. The user named "user" does not have permission to acces the mysql server hosted on localhost using no password. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.