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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.