jmr3460 Posted March 7, 2010 Share Posted March 7, 2010 I have built and am using a dB on domain 1 that I would like to use some data on domain 2 for display only. I have created username and added username to the database and only given that user select permissions only. I keep getting the following errors: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'arscnaor_tana'@'23-241.bluehost.com' (using password: YES) in /home3/simplic5/public_html/texarkana/meetings/test_meetings.php on line 7 Notice: Access denied for user 'arscnaor_tana'@'23-241.bluehost.com' (using password: YES) in /home3/simplic5/public_html/texarkana/meetings/test_meetings.php on line 7 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home3/simplic5/public_html/texarkana/meetings/test_meetings.php on line 8 Access denied for user 'arscnaor_tana'@'23-241.bluehost.com' (using password: YES) First question is Can I display data from one domain on a page in another domain? Second if so where am I going wrong? Here is my code: <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); session_start(); //connect to server and select database $db_name = "arscnaor_meetings"; $connection = mysql_connect("arscna.org", "user", "pass") or trigger_error(mysql_error()); $db = mysql_select_db($db_name, $connection) or die(mysql_error()); ?> Quote Link to comment https://forums.phpfreaks.com/topic/194405-remote-access-mysql/ Share on other sites More sharing options...
abazoskib Posted March 7, 2010 Share Posted March 7, 2010 please post the output of "SHOW GRANTS FOR 'arscnaor_tana'@'23-241.bluehost.com' " also, is your server configured for remote access? Quote Link to comment https://forums.phpfreaks.com/topic/194405-remote-access-mysql/#findComment-1022624 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.