Jump to content

[Answered] Failed To Connect To The Database


stefilix

Recommended Posts

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

Link to comment
Share on other sites

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.   Paste as plain text instead

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