Joomla Installation error on my domain.

Discussion in 'Joomla' started by Tanmi Gold, Jun 27, 2010.

  1. #1
    Hello Everyone,

    Please help me around!

    I have created a website using Joomla 1.5 on my local machine. Thereafter i manually installed all the files to remote host, created a database and also imported the local database sql file. I also made necessary changes to configuration.php file as below

    var $log_path = '/home/user/public_html/logs';
    var $tmp_path = '/home/user/public_html/tmp';

    var $live_site = 'website url';

    var $host = 'domain name';
    var $user = 'user';
    var $db = 'database';

    var $smtphost = 'domain name';

    var $password = 'pwd';

    The problem is the website doesn't work, gives an error

    Database Error: Unable to connect to the database:Could not connect to MySQL

    please let me know where i m wrong.

    Thanks in advance!
     
    Tanmi Gold, Jun 27, 2010 IP
  2. v2interactive

    v2interactive Peon

    Messages:
    128
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Username/Password/MySQL location error. Is it set to localhost?
     
    v2interactive, Jun 28, 2010 IP
  3. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #3
    yes you should check the connection setting it is set to localhost or not
     
    infogle, Jun 28, 2010 IP
  4. Tanmi Gold

    Tanmi Gold Peon

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I got it corrected, mistake was that i did not grant all privileges for the user to access database. =)

    Anyways, v2interactive and infogle Thanks to you both for responding!
     
    Tanmi Gold, Jun 28, 2010 IP
  5. eyashwant

    eyashwant Active Member

    Messages:
    885
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #5
    Always make sure database name, localhost or server address, port, username and password are correct. Also make sure that ones you saved in config file are saved. Some times due to permission (In Linux) it may not be saved.

    Anyways it is good you got it fixed.
     
    eyashwant, Jun 29, 2010 IP
  6. s singh

    s singh Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    it's beginners mistake i think they should have to concentrate on localhost , db name , usr name and there privileges and also it you are trying to copy these username , password and dbname then be sure that there is no space just after these. it will help you most of time to perfect installation.
     
    s singh, Jul 4, 2010 IP