Jump to content

Help a beginner with MSQL connection issues


ajaxsoundscool

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.