jagguy Posted January 24, 2007 Share Posted January 24, 2007 I am trying to connect to a mysql database on a website (not localhost) and getting some problems (as listed in mysql forum).I wonder have I connected corretly.<?php error_reporting(E_ALL); // some basic sanity checks //connect to the db $link = mysql_connect("jagguy.ej.am", "jagguy_root", " ")or die("Could not connect: " . mysql_error()); // select our database mysql_select_db("jagguy_formdata") or die(mysql_error());?> Link to comment https://forums.phpfreaks.com/topic/35485-connect-db/ Share on other sites More sharing options...
Gruzin Posted January 24, 2007 Share Posted January 24, 2007 What's your error message? and did you try to use ip for host?Regards,George Link to comment https://forums.phpfreaks.com/topic/35485-connect-db/#findComment-167899 Share on other sites More sharing options...
jagguy Posted January 24, 2007 Author Share Posted January 24, 2007 I believe you need to access command line mysql which I don't believe I have on this website ejam.Warning: mysql_connect() [function.mysql-connect]: Host 'meiling.seraphimnetworks.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home/jagguy/public_html/dbconnect.php on line 7Could not connect: Host 'meiling.seraphimnetworks.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' Link to comment https://forums.phpfreaks.com/topic/35485-connect-db/#findComment-167946 Share on other sites More sharing options...
HuggieBear Posted January 24, 2007 Share Posted January 24, 2007 Well, I think that you have the answer right there!Have you tried what they suggested, or have you asked your host to do it?RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/35485-connect-db/#findComment-167951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.