DMXzone Database Connector PHP Support Product Page
Solved
Would like an example of set up of database connector for remote host
Reported 23 Sep 2013 03:13:42
1
has this problem
23 Sep 2013 03:13:42 Hope Tillman posted:
The example in the manual and video are for localhost connections. I'm looking for an example of a remote host. I have set up connection files in the past and yet the database connection info I am entering brings up an error screen. Thanks. Replies
Replied 23 Sep 2013 06:06:52
23 Sep 2013 06:06:52 Teodor Kuduschiev replied:
Hello Hope,
There is no difference if you connect to a local server or a remote one.
Please provide the exact error message you are seeing? Are you sure you are using the right login detailes, provided by your hosting provider: ip/port/user/pass?
There is no difference if you connect to a local server or a remote one.
Please provide the exact error message you are seeing? Are you sure you are using the right login detailes, provided by your hosting provider: ip/port/user/pass?
Replied 23 Sep 2013 15:13:01
23 Sep 2013 15:13:01 Hope Tillman replied:
I am using exactly the same information that I use in the connection file (which is working) for this same database.
The error is: SQLSTATE[HY000][2002] php_network_getaddresses: getaddinfo failed. This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
When I use localhost the setup is OK.
The error is: SQLSTATE[HY000][2002] php_network_getaddresses: getaddinfo failed. This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
When I use localhost the setup is OK.
Replied 23 Sep 2013 15:17:07
23 Sep 2013 15:17:07 Teodor Kuduschiev replied:
What is your PHP version? Do you have PDO installed/enabled on your server?
Please create an info.php file with the following code inside it:
Then send us a link to this page.
Please create an info.php file with the following code inside it:
<?php phpinfo(); ?>
Then send us a link to this page.
Replied 23 Sep 2013 22:31:33
23 Sep 2013 22:31:33 Hope Tillman replied:
Thank you so much. It turned out that my webhost did not have PDO enabled for my server. Now that it is enabled, the connector worked perfectly on one of my server.
Unfortunately on a second server which is set the same, it did not.
Both info.php listings show the "with-pdo-mysql" listed under the Configure Command. Both servers are using PHP Version 5.3.13
Where should I send the info.php file? Don't really want to post it publicly
Unfortunately on a second server which is set the same, it did not.
Both info.php listings show the "with-pdo-mysql" listed under the Configure Command. Both servers are using PHP Version 5.3.13
Where should I send the info.php file? Don't really want to post it publicly
Replied 24 Sep 2013 07:48:25
24 Sep 2013 07:48:25 Teodor Kuduschiev replied:
Please send the link to
Replied 27 Sep 2013 17:13:22
27 Sep 2013 17:13:22 Hope Tillman replied:
Both my connections work correctly for localhost. They now both have PDO enabled, as can be seen in the info.php files.
I am still unable to create a database connection.
By the way, I am able to use the HTML Data Bindings successfully with a Public Feed.
Any suggestions of what to try next?
Hope
I am still unable to create a database connection.
By the way, I am able to use the HTML Data Bindings successfully with a Public Feed.
Any suggestions of what to try next?
Hope
Replied 28 Sep 2013 07:54:34
28 Sep 2013 07:54:34 Teodor Kuduschiev replied:
Please describe your problem a little more detailed - what do you mean by:
"I am still unable to create a database connection. " ?
Are there any error messages? Are you sure you upload all of the files to your remote/testing server when you create the connection?
"I am still unable to create a database connection. " ?
Are there any error messages? Are you sure you upload all of the files to your remote/testing server when you create the connection?
Replied 28 Sep 2013 18:54:02
28 Sep 2013 18:54:02 Hope Tillman replied:
When I try to create the database connector and fill in the screen with the appropriate server address, database, username and password, and then click test connection, it appears to get 25% across and then I get the error message. I am posting that error screen on the website .
No files get uploaded.
I also tried editing the localhost screen with the remote server differences and putting that up on the website but that does not seem to work. When I try that I get a Server Response: SQLSTATE[HY000][2002]php_network_get_addresses:getaddrinfo failed
No files get uploaded.
I also tried editing the localhost screen with the remote server differences and putting that up on the website but that does not seem to work. When I try that I get a Server Response: SQLSTATE[HY000][2002]php_network_get_addresses:getaddrinfo failed
Replied 30 Sep 2013 05:12:08
30 Sep 2013 05:12:08 Hope Tillman replied:
Tonight I went back to the database connector to try again, and it works perfectly. Have no idea what is different but I am happy it is working.
Thanks for your helpful advice along the way. The main issue was the need to get the web host to enable PDO.
Thanks for your helpful advice along the way. The main issue was the need to get the web host to enable PDO.
Replied 01 Oct 2013 12:13:41
01 Oct 2013 12:13:41 Ghassan Safadi replied:
I have a somewhat similar issue on remote MYSQL ( 1and1). I can connect to the database using PHP database connector. I am not able however to do MySQL binding so as to upload records from a form in my browser...According to 1&1 they do not allow remote MySQL connection but I do not understand then how come I can connect with the DMXZone PhP Database connector?