using MySQL without installing server - mysql

Is there any way to use MySQL without install? I am making an desktop application using Visual Studio and C# that uses MySQL. I will use this program on another computer.if this computer has no MySQL installation my program will also work? Can I move my database with my application?

No, you do not need the server installed locally. You do need some sort of client, though. For C, you would need the mysqlclient library. I assume C# has something similar to enable the CLR to talk to MySQL.
If you are looking for a portable database, check out SQLite. As for the best library for C#, see these answers:
What is the best way to connect and use a sqlite database from C#
Is there a .NET/C# wrapper for SQLite?

No... You will need the computer to have mysql and your compiled code. What you CUD do if your database is not too big is hardcode the data storage and retrieval in your code itself.. in that case you wont need mysql installed there..
OR you cud allow network access to mysql on another machine(server) in that case u only need mysql on the server

Related

Connect to MySQL database from 4Dv12 or later version?

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.

Windows App with mySQL Backend

I am trying to design a database application for my small business. I've created a number of form driven MS Access databases for use before but would like to create a permanent solution in something more advanced & common.
I was thinking of using mySQL for the database and would then program a C# or VB application to be used in Windows. I do not want or need a web based version at this time but the migration to VB.net in the far future may be something I'll look into.
I know I can use a MS Access backend for my windows application without having to install MS Office on any or all the computers the program will be run for.
But here is my question. Is it necessary to install mySQL Server on the PC hosting the database, on all the PCs accessing the database or can I just use the database file as the backend and Visual Studio will have all the necessary tools I need to access it?
If I have to install the server I may just stick with the MS Access database as the needs for an excessive amount of database storage won't ever be an issue.
You'd need to install MySQL server on the Server hosting the database. The clients would then connect via the network. You will however need a driver to access the MySQL-Server with VB.NET on the client machines. A simple DLL-File might be enough, though.
If you are looking for a file-based database solution have a look at SQLite. But you will have to watch out for concurrency issues here.

Flash Application with local database (not sqlite, not air)

I would like to have a Flash Application (not air) to connect to a local database.
Air is not only getting unsupported by Adobe in LINUX but besides, it has serious problems and miss implementation with SQLite.
So we want to connect to a local MySQL database.
This application should be simple, so we do not want to also have an unnecessary web server (also local) to make a middle communication between the flash app and the MySQL server.
There is this driver that allow to communicate Flash with MySQL
http://code.google.com/p/assql/
Question is:
Is this the best approach?
Would it be any problem using this approach when installing the whole application to each client? (because we also in the installation should install a MySQL server).
A MySQL SERVER is called a SERVER for a reason: It is meant to be installed on servers, not on clients. So the answer to your question is:
1) No, this is not the best approach. Not even close. You would be better off using a SQLite database (however shitty you may think it is)
2) Yes. Nobody would like installing a MySQL server on their computers just for the sake of running your application. Think of casual (non-expert) users who would need to install and configure the server just for running your app. That is the very REASON why they developed SQLite and so many languages support it.
You should check out http://code.google.com/p/air-sqlite/ for sqlite access in AIR (I don't know if this is the same as the inbuilt code or not, so just check that out)

COCOA Objective-c : How can connect to mysql database?

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 way to connect to a Mysql database in Delphi

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.