How to connect MySQL to VB6 Data Environment at design time? - mysql

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

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.

using MySQL without installing server

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

is it safe to install mySQL on windows server 2003 when MS SQL 2005 express already exists?

[edit]
I should note that I need to do this on a live production server. The MS SQL Server is already attached to our website and supports a 3rd party ERP package. I want to set up a separate database that I can code against for some auxiliary pages and internal-use apps) which will be completely independent (mostly for security, but also because I prefer mySQL) from the ERP solution.
[end edit]
The MS SQL 2005 express db is already installed and in use, so I don't want to hose it.
Will this create problems, or have you done it successfully?
Aside from performance issues, assuming they're both continuously used, there shouldn't be a problem.
For a development machine this is safe to do. The two database servers listen on different ports, so there is no problem of running both at the same time.
I wouldn't recommend it though for a production system.
Like Assaf said, the only thing you should worry about are possible performance issues with both database services getting run at the same time. Other than that you should have no worries concerning the integrity of the two. They are completely separate and should not have any sort of conflicts.

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.