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());?> Quote Link to comment 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 Quote Link to comment 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' Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.