Jump to content

Recommended Posts

Posted

i upload my joomla site to server but when i open my website i got this error "Database Error: Unable to connect to the database:Could not connect to MySQL"

this is what i've done.

- upload whole joomla from my localhost to public_html via ftp

- create new database,user and add user to database

- modify configuration.php (change db name,password and some other information to match heliohost) and upload it back

 

 

 

var $ftp_host = '127.0.0.1';

var $ftp_port = '21';

var $ftp_user = ' teepwale@pimmy.heliohost.org';

var $ftp_pass = '*******';

 

var $dbtype = 'mysql';

var $host = 'localhost';

var $user = 'root';

var $db = 'teepwale_pimmy';

var $dbprefix = 'jos_';

 

 

 

 

var $password = '*******';

 

- export my local phpmyadmin and import it via phpmyadmin in cpanel

 

my site is http://pimmy.heliohost.org

 

could you please check it for me;thanks

 

Posted

Surely your username is not "root" as it has to follow the "accountName_DBUsername" format. I imagine that might be where your problem lies.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...