Rank: Newbie
Groups: Member
Joined: 9/10/2013(UTC) Posts: 5 Location: Minnesota Was thanked: 1 time(s) in 1 post(s)
|
I used the Website panel to create two users, both users are able to log in the phpmyadmin screen. I can work from the admin screen to create tables and work on it. I want to connect from a php script and am receiving an error. I'm thinking the host information is not correct, what should I be using as the host to connect to the MySQL database? In another post I saw that the server was being moved to 67.15.128.18, when I tried that I got the message:Access denied for user 'GEby'@'216.38.17.122' (using password: YES) When I try localhost:No connection could be made because the target machine actively refused it. <?php $db_name = "db_Name"; $un = "user"; $pw = "password"; $host = "localhost"; $conn = mysql_connect($host, $un, $pw) or die (mysql_error()); echo("Connected to mySQL Database"); mysql_select_db($db_name) or die(mysql_error()); echo("Connected to videocollect"); ?> Edited by user Tuesday, September 10, 2013 7:47:19 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 9/10/2013(UTC) Posts: 5 Location: Minnesota Was thanked: 1 time(s) in 1 post(s)
|
|
1 user thanked Russ for this useful post.
|
|
|
Rank: Administration
Groups: Administration, Member Joined: 1/17/2013(UTC) Posts: 13
Thanks: 2 times
|
Thank you for this useful post, i will add this in our knowledge base. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The HostingFest Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close