Advertisement

09.04.2008 at 07:09AM PDT, ID: 23702641 | Points: 500
[x]
Attachment Details

MySQL remote connection

Asked by deanmb in Programming for iSeries / AS400, MySQL Server, Windows Vista

Tags: ,

I have a windows Vista box that i can RDP into.  It's running as a MySQL server.  I have a webserver too with PHP installed and the dlls for PHP.  So i put a script on the PHP server to input a file into the MySQL server.  The file is this.

$mysql_host = "10.1.8.182";    //MySQL host
$mysql_user = "as400";   //MySQL Username
$mysql_pass = "inventory";     //MySQL Password
$mysql_login_db = "patients";

$conn = mysql_connect ("$mysql_host","$mysql_user","$mysql_pass");
mysql_select_db ("$mysql_login_db") or die(mysql_error());

//$result2=MYSQL_QUERY("TRUNCATE patientinfo");

$result=MYSQL_QUERY("LOAD DATA INFILE 'C:/AS400/MR3L09F.CSV' INTO TABLE patientinfo FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n';");

but that won't run i get the following MySQL error.

Can't connect to MySQL server on 'localhost' (10061)

as you can see im not connecting to localhost but it thinks i am.  And i tried making sure that MySQL was setup for remote connections but the only tutorials i found were for SSH and linux.  Is there any simple way to setup remote connections and is there something else i may be doing wrong?Start Free Trial
[+][-]09.04.2008 at 08:04AM PDT, ID: 22388252

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 08:06AM PDT, ID: 22388285

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 08:23AM PDT, ID: 22388562

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 08:31AM PDT, ID: 22388687

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 10:34AM PDT, ID: 22390233

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 10:38AM PDT, ID: 22390264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 10:54AM PDT, ID: 22390458

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:06AM PDT, ID: 22390611

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:07AM PDT, ID: 22390622

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:12AM PDT, ID: 22390704

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:26AM PDT, ID: 22390906

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:26AM PDT, ID: 22390916

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:31AM PDT, ID: 22390969

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:33AM PDT, ID: 22390996

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:34AM PDT, ID: 22391007

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:36AM PDT, ID: 22391029

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 11:48AM PDT, ID: 22391171

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 12:02PM PDT, ID: 22391372

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 04:21PM PDT, ID: 22393835

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2008 at 04:22PM PDT, ID: 22393846

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628