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.
Related
I'm working on an app with a team. They are able to log in fine when running it on their local servers, however when I try to do so I get 'Invalide username / password' and no network activity or console errors in dev tools.
I have no idea why this could be, we're working on the exact same code - clearly it's something on my machine.
Has anyone come across anything like this before?
(Have tried other browsers and still nothing).
Maybe you need to check your server instalation on your machine.
For example, if you are using XAMPP to manage your Apache maybe there is some configuration that was set in the wrong way.
My advice is, save your code and re-install your server, pay attention to all configuration details and see if the problem is solved.
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!
I'm trying to write an iOS app using Xcode.
A simple login prompting username and password.
I have no idea how to open a database connection to validate the username and password.
The database I use is mysql.
I tried using this link http://macbug.org/macosxsample/mysql#.Ur8AYBbtGPF
but I get an error when I tried to add libmysqlclient.a to the frameworks and library.
If your database is on a server somewhere, then you would generally not have your iOS app interact directly with the database server, but rather you would write a web service that the app would interact with (via NSURLConnection, NSURLSession or something like AFNetworking), and the web service would interact with the MySQL database.
In terms of how to write a web service, often, when people are writing their first web service, they'll use some simple technology like PHP. Do you know what options you have on your server? If PHP is an option, then you can check out Ray Wenderlich's How to Write a Simple PHP/MySQL Web Service. Then check out How to Write an iOS App that Uses a Web Service.
You should use SQLite instead of MySQL for iOS application. You are referring MacOSX application tutorial. try this http://www.raywenderlich.com/913/sqlite-tutorial-for-ios-making-our-app
I've been searching for resources to be able to connect to MySQL through Objective-C (a desktop application, not iOS) and I can't seem to find anything newly relevant that works. Since it's desktop based would I be able to skip using middleware (JSON/XML)? And sorry for the lack of a better term but am I right in saying Objective-C for the desktop, and not iOS or is there another word for Objective-C for the desktop?
Any help in regards to connecting to MySQL and upping my terminology would be great.
Depending on what you need to do, using a middleman such as PHP may be easier, but you can accomplish directly connecting using sockets.
Take a look at this. http://macbug.org/macosxsample/mysql#.Ui9xLT5s25c
Also keep in mind your MySQL server must be configured to allow remote connections from your IP address.
Soo, I've decided to toy around a bit with GAE. Most of my previous experience with developing web-applications is with ASP.Net, so this java / eclipse-world is kinda unfamiliar to me.
I read around, and found out that I can configure my project to use a Google Cloud SQL instance when it's deployed at Google, while using a local MySQL database while running locally on my development server.
The problem I ran in to now is that I can simply not press "Ok" in the eclipse dialog for configuring my local MySQL database? Well - I can, but with no result. No error message, no window close, no nothing.
I'm not really sure what I am doing wrong, but was hoping some wiz in here who has more experience than me with GAE have had a similar problem and a solution?
I've attached a picture of my local MySQL configuration:
http://imgur.com/0tjK7Sf
Thanks in advance