Hey! I've searched high and low for this, and no luck. Is there a way that CRUD methods for a MySQL install (Linux box) be exposed via ADO.NET WCF Data Services? I would really love to leverage this in my WPF app :)
Thank u!
EDIT:
:D I am aware that it's called Windows Communication Foundation, but just thought I'd put it out there and hope that it is possible
The only way to do this would be to use a something like a MySql to linq provider and host the wcf service on a windows server box which connects to the mysql linux box in the usual connection string way.
So you will need windows server as well as the linux one hosting the mysql database, unless you want to move the mysql instance to the same windows box.
Hope this helps.
Edit
Couple of potential links which could help ... here and here
Have a look at the Mono WCF Core stack, this might be better for you.
Related
Can anybody help me in connecting my MySQL database from my 4D database application. I have tried but still could not find any help. Please note that i want it without ODBC and want to directly connect to my MYSQL db.
I have integrated MySQL with 4D without ODBC using this C compiled library
https://www.pluggers.nl/product-category/4d-plugins/
The price is WORTH EVERY PENNY. I used both their MySQL and PostgreSQL wrappers.
I talked to the developers, they have done just what you want. Provided a 4D component C library wrapper to target functionality of other databases.
It is VERY FAST.
If you decide to use the ODBC connector use this command to target a pre established ODBC connection on the machine.
http://doc.4d.com/4Dv15/4D/15/SQL-LOGIN.301-2007437.en.html
Also. ignore the connectivity API is for version 2004 and is not relevant to your question.
-James
What I read is that 4D doesn't do this without the API (additional price of $59), API details seen here.
Another option I found, be out date, is to write something yourself in the C compiler which can talk to MySQL directly.
You may connect via web service such as SOAPand REST.
You may also retrieve both data in and out via JASON.
Also, Since 4D now support PHP, you may build an APPLICATION in php that will do the migration or Synchronization.
But if you are looking for Direct Query, I don't know about the latest version of 4D, but as for 4Dv12 that would be bloody if you tried to build your own, since the simplest way is to do it is via ODBC.
Before, I tried to connect it via EXTERNAL PROCESS and SERIAL COM using .Net but it's just to risky, so i just Give up.
I have a DB program and I want to use mysql_backup that is from here:
http://mysqlbackupnet.codeplex.com
When you download the package,there is 3 folders: .Net 2, .Net 4 and .Net 4.5
Is there any difference that which package I use?
Although it's better to use .Net 2 because all my clients have Windows XP that .Net 4 has some crashes on it.
And if there is no difference, then why there is three packages?
thanks
What "DB program" do you have? I'll take a guess it's MySQL you're working with, but are you using something like Percona or MariaDB as a drop in? Also what flavor of linux are you running on? I only ask because perhaps there are easier/cleaner ways of doing what you are trying to do.
If you have root access to the server you are working with, then why not write a bash script to take care of backing up your databases. Going your own custom route might seem to daunting, but the upside is you get to control how your system backs up. You could get a cron job to make backups to a specific user folder, or even have backups sent to a remote Dropbox. I've got a system similar setup on my own VPS. Happy to help you out if I'm able.
Is there a way to connect MySQL to VB6 at design time?
I know the option of setting up a DSN on Windows but wouldn't this make the application dependent on the machine where it was built?
Is it technically possible to make such a connection at design time so that I can create my data reports easily?
Thanks!
Yes, it is possible a great utility is created by MySql people but that is know by very less developers as after they rapidly transferred to .Net Program and the utility is VBMySQLDirect, Very good utility to run in Connect VB6 real time as in other programs
I am creating application for MAC using cocoa framework, I would like to know how and what are the ways i can connect to MySql database using cocoa framework.
You might want to look into http://www.sequelpro.com/docs/Source_Code. They seem to have resurrected the original MySQL-Cocoa code and it seems to be under active development. The other option is the commercial MacSQL Framework.
Edit: You might also want to look at the following tutorial. It is a great introduction in using the libmysqlclient and even provides a sample Xcode project.
Short answer: You can't, at least not directly.
The Cocoa Framework doesn't have a database driver, generic or otherwise (CoreData notwithstanding). In order to connect to a mysql database you need to use the aptly named libmysqlclient. This library is not included with Xcode, and as such will have to be downloaded (and probably built) separately: You can get it from here.
You'll probably have to distribute the library with your application, license issues might result.
Edit: It seems as if a library for connecting to the mysql database should be installed together with a MySQL server install. If the application will only need to run on machines where MySQL is installed, you might get away with linking to this.
What is the best component to use when connecting to a Mysql 5.1.x in Delphi and why ?
No other DB components could beat DevArt DB Components, they have MyDac and UniDac, both of them could use direct access to the database without requiring mysql client to be installed on the client machine, beside they offer fast performance and high quality compared to other components
Data Access Components for MySQL
Universal Data Access Components
and check the pages above to know why ;-)
You should take a look at AnyDAC, supports MySQL and a lot of other databases.
Devart and microOLAP both offer components to access MySQL databases. Devart also have dbExpress drivers for dbExpress users.
Bob Swart has published Delphi for Win32 VCL Database Development on Lulu, if you need any help.
Don't forget that MySQL's client dll are GPL-ed, and if you are using it to connect to server, your app must be GPL-ed.
There are alternatives. Components that connect directly to MySQL skipping GPLed dlls. DevArt has such components (direct and dbx), and there are free components that can connect directily on tory.net.
I don't use MySQL, but when I can, I prefer dbExpress. It's unidirectional, which makes it pretty fast. Though I haven't done any benchmarking recently.
If dbExpress isn't your thing, I found this list of components for MySQL access.