Connecting to MySQL through Objective-C (Desktop) - mysql

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.

Related

how can we connect MYSQL with html

i want to connect my data base with html web side please tell me how can i connect the html website to MY SQL.
You need to use PHP and setup a Localhost webserver, something like Wamp or Xamp will do.
I personally use Wamp, you can make a Database in the PhpMyAdmin service provided with it.
To further setup and connect to your database, you can simply search on google for some more detailed steps regarding to database connections.
but using a local webserver and php should get you up and running.
You need to use backend script/service to achieve the goal. You cant make connection directly. In between database and frontend (your html pages) there is backend.
to achieve your goal you can use php, node js which has n number of tutorials available.
Your question is getting minus points because it is incomplete and very basic.
Thanks

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.

WAMP MYSQL or MYSQL service on clients side?

We have designed an application using .NET framework. There is a client application and a server application. The client applications, webpages, android/ iphone applications fetch data from the server using the WCF service.
My issue here is that some of the data that can be set by the user on the application is being saved on the server but cannot does not reflect on the client side once the application is restarted, we have designed the application in such a way that every change on the client side will be reflected on the server side, this is done to make this a cloud based application.
Some of the settings changed or value input on the client side is updating on the server successfully but does noes reflect on the client machines using the direct MYSQL service. However there are absolutely no issues while using WAMP as the MYSQL service, i.e the clients using the WAMP server can see the changes made. We have tried matching the versions and also have tried new and old versions of the standalone MYSQL. Firewall settings all seem fine. Since we prefer to install the standalone MYSQL over WAMP on our customers machines, it would be great if you could shed some light on the possible issues. Is there any difference in the initial config of MYSQL and the default config of WAMP MYSQL.
Hence if there is any thing in particular to note or tweak in this regards it will be really helpful.
Thanks in advance.
I don't think you'll get a really good answer to your question, because the term "WAMP" does not refer to a specific package, but rather any package that includes Windows versions of Apache, MySQL and PHP (and sometimes Perl instead of or in addition to PHP). See this link for a list of some of the available packages:
http://en.wikipedia.org/wiki/Comparison_of_WAMPs
Those packages come with different standard configurations for MySQL. Since you didn't say which WAMP package (and version) you were using, there is no way of knowing in what way their standard configuration differs from a plain MySQL installation (where the version is also important)
Have you tried just running a diff on the respective config files?

Comet (Ajax Push) in Godaddy dedicated server?

I want to know if it's possible and I'm looking for tutorials to set it up.
APE website says that knowledge of JavaScript programming is sufficent to follow the tutorial however I haven't been able to puzzle even the first 2 lines of the tutorial.
I'm using Ubuntu. After downloading APE I have no idea what to do. I already set up SSH to access the server.
What should be my following steps or where can I find an easier to tutorial to use comet be it through APE or something else?
Assuming your GoDaddy server is running some flavor of Linux, I don't see any reason it would not be possible. I was just looking over the documentation and I am not clear on what part you are having trouble with. What Linux distribution are you using? Do you have SSH access?
If you have ssh access and a root account you should be able to just follow the instructions to get APE running on the default port.
If you are running a Debian dist (Ubuntu and others) it looks like you should download the source from Git and compile it. There are instructions for the compilation there. You can learn about what you need to do wth Git by search for "clone git".
If you can be more specific about what you are having trouble with, we can probably be more helpful. But ultimately you should be able to install this on any dedicated server without issue.

Local use of MySQL database

Is it possible to use MySQL local? I mean NOT at a server. I read a lot about MySQL on a webserver with PHP, Joomla etc.
I want to program a piece of software and use a database local to store results. Can I use MySQL for that?
If so, is ther anyware on the net a good tutorial how to do that?
You can install MySQL on your workstation, it doesn't need to be on a "server" per se. You still need to use something that can connect to it. From a Java application, for instance, you'd use JDBC; from .Net, you'd probably use ADO.Net; etc.
As far as I know, it will still want to have its server process (mysqld) running and for you to connect to that process via sockets and the like; there's no standard in-process version that I'm aware of. (The server can be listening only on the local interface, though.) There are several alternatives if you want in-process stuff, such as SQLite and HSQLDB.
Of course, if you're feeling really enterprising, there's the open source version of MySQL, which means you could compile it into your app (if you're using C or something that can link to it), but I suspect that's going rather too far. :-)
Yes, works like a charm for this.
Mysqls homepage has lots of info for this.
use SQLite. it is a popular embedded database.
It can be deployed via XCopy and no server installs.
But it can only be used locally. i.e if you later on decide to allow remote access, then you will need to migrate it to MySQL or other databases.
Try xampplite - it will painlessly install MySQL for you (on your local windows machine) as well as apache, php and a few other web apps if you need them.
If you don't want to install a server, you may be interested into Sqlite! It's the most widely deployed embedded database, and it's Public Domain.
http://www.sqlite.org/
Firebird is also an alternative. It's fully ACID-compliant and runs under the Interbase Public License.
http://www.firebirdsql.org/