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!
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!
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.
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.