Jump to content

[Answered] Failed To Connect To The Database


Recommended Posts

Posted

I've uploaded yesterday my web files to my domen, and I've created one database in myPHPAdmin, but, I have problem with connecting to database.

Does any one knows what is server name or knows where I can check for right one if it's personal, I've been testing some links, for which I thought that could work, but only one took a long load 'ns1.heliohost.org', but after long time of loading nothing really happened, it just pop up the message from a $connect_error.

 

Here are the links I've tried:

- ns1.heliohost.org

- Shared IP Address

- Main Domain

 

<?php

$connect_error = 'Sorry, we\'re experiencing connection problems.';

mysql_connect('???', 'mysql_username', 'mysql_password') or die ($connect_error);

mysql_select_db('lr') or die ($connect_error);

?>

 

Best regards,

Stefan

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