Jump to content

remote access mysql


jmr3460

Recommended Posts

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());
?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/194405-remote-access-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.