stefilix Posted August 10, 2012 Posted August 10, 2012 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
Tjoene Posted August 10, 2012 Posted August 10, 2012 You need to use "localhost" to connect to MySQL.
stefilix Posted August 10, 2012 Author Posted August 10, 2012 However, I've already figured out, I thought all the time it was something else, not just 'localhost' . Best regards
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now