Dreamweaver connecting to mysql - mysql

I want to build a website using dreamweaver and mysql. I used mamp on mac to communicate with mysql.But when I try to build database connection with my sql, I got this error:
HTTP Error Code 404 File Not Found. Here are some possible reasons for the problem:
1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to the "http://localhost/LabelSite/_mmServerScripts/MMHTTPDB.php URL."Verify that the URL Prefix maps to the root of the site.
I googled and try a bunch of ways but none of them work.Here is what I've already tried:
1)copying MMHTTPDB.php and mysql.php to /Applications/MAMP/htdocs/LabelSite/_mmServerScripts
2)changing the web url to "http://localhost/8888/LabelSite"
But none of them worked
Here is how I set my site by dreamweaver:
I did select server model to be "PHP MYSQL" on the advanced tag of Servers
Any advice would be appreciated, thanks!

I solved this by changing Web Url in the site's testing servers to
"http://localhost:8888/LabelSite/"
Now I get rid of the error!

Related

Intermittent MySQL Connection Error in Azure Website

I'm getting the following error intermittently when making a call from my ASP.Net MVC web application which is using Dapper to query MySQL.
Unable to connect to any of the specified MySQL hosts.
The exception only occurs when my web app is published to Azure. It has worked 100% of the time when I run the code locally. I've deployed the code to a second azure website, and also get the exception there, again intermittently.
The MySQL database is running on an Azure VM (Ubuntu). This server also has some R scripts that access the database, which are being run at a set interval. I've had no connectivity issue with these either. It is just the .Net code that's struggling.
I've scoured the web, but don't feel like I've turned up anything of value. Most of the links have pointed to a connection string problem, but since it works intermittently that doesn't seem to fit my problem. Some links have referenced DNS issues, but I'm getting the same problem when I use the IP Address instead of the machine name for the DNS server.
I'm sure I need to track down more information, but I'm not sure where it would be. This is my first foray into using a MySQL db in this fashion, and I'm not familiar with config options or log files on that side of things. I feel similarly about Azure websites with database interactions too.
What can I try next?
Just to drive home the point about this error being intermittent, here's a screenshot from the Runscope job that's hitting the page (thus triggering the MySQL query) every 5 minutes:
I was able to fix (or perhaps "circumvent") this problem by adding the --skip-host-cache flag to our mysql configuration file. I still don't fully understand what the root of the problem is, but we haven't had any issues with MySQL connectivity from the Azure website since adding that.

Cannot retrieve json data using Drupal services module with Bluehost

I am unable to view my endpoint in drupal using bluehost. I have used acquia local hosting and the data is viewable just fine via http request and through command line using curl. When I set up the site with drupal on Bluehost I receive a blank page.
with end point test:
http://parentstalkaddiction.com/test/node.json
gives me nothing
Can anyone please tell me what I might be doing wrong? Thanks in advance.
This is likely a PHP version issue. Bluehost seems to be on PHP 5.2.x and the services module uses functionality that requires PHP 5.3.x.
There is an issue open for this: https://drupal.org/node/2003396
If you don't mind applying a patch, you can do so to make it work with Bluehost's version of PHP:
https://drupal.org/files/ServicesRESTServerFactory.inc_.patch

Localhost not loading in any browser

I have asked a similar question before here I sort of fixed it but im still facing a similar issue. Every time I try to load localhost, port 8095, I receive this error message in Google Chrome:
Google Chrome's connection attempt to localhost was rejected. The
website may be down, or your network may not be properly configured.
If there is a way to fix it, please tell me,
If not, please could someone inform me how to reset IIS to its original settings. Or if I can reset Windows Features so I can re-install ISS from scratch.
My website uses ASP with a connection to a SQL Server database (2012). Basic HTML pages also don't load under the URL, localhost:8095/
The servers were stopped because 2 services within administrative tools had stopped. World Wide Web Publishing Service and Web Management Service

Connect iPhone to MySql server without using web services

I am new to IOS development, i am not able to connect my iPhone to mysql server. Is it possible to connect to mysql server without web services. I tried it in many ways. At last i found one post on http://macbug.org/macosxsample/mysql#.U-mq3oCSwni about this topic but I am getting Apple Mach-0 linking error. I went through all the links related to this linking error, but i did not get specific answer.
Thank you.

Connect to Mysql from Chrome extension

Is it possible to connect to some port on localhost to MySQL and to make SQL queries?
It's intended as a development tool, so the user authenticates to his own db.
I've found:
https://npmjs.org/package/mysql-native-pre
plus
http://blog.iceddev.com/2012-11-05-node-js-in-chrome.html
So, it looks like there is a way to run nodeJs in chrome ext. and there is NodeJS module for MySQL communication.
But that still does not mean, that this particular module will work in Chrome sandbox.
Does anyone have some experience with this? I don't know NodeJS and even Chrome extensions, so before I start digging ...
Thank You.