Delphi-Kylix
  Home arrow Delphi-Kylix arrow Using Delphi with MySQL
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Using Delphi with MySQL
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 15
    2006-10-25

    Table of Contents:
  • Using Delphi with MySQL
  • Required Tools
  • Setting up the Connector
  • The Application
  • Form Two

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Using Delphi with MySQL


    (Page 1 of 5 )

    Businesses that are strapped for money but need an RDBMS know that MySQL fits the bill. It works well with many programming languages, but what do you do if you need to write a multi-user database application for it in a language that it doesn't support quite as well? That's the challenge our author faced as a Delphi programmer. To see how he tackled it, keep reading.
    A downloadable file for this article is available here.

    After years of writing single user database applications, mainly involving MS Access, I got involved in writing a database application that required multi-user access. My client had access to a Microsoft SQL server so I wrote an application using it.  This particular client was fortunate that he had money to throw at a expensive RDBMS system. Not all of my clients are that fortunate and always expect me to find the cheapest alternative. 

    After a very short search on the Internet I found that MySQL fitted the bill perfectly. MySQL (TM) is a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL is intended for mission-critical, heavy load production systems as well as for embedding into mass-deployed software. And best of all, it is free! It works very well with programming languages such as PHP, Perl and others.

    Since I use Delphi to write most of my database applications, I wanted to find out if MySQL can be used with Delphi. Once again, I did a bit of searching on the Internet and in database-related books, and found that there is not a lot of help out there that is specific to Delphi and MySQL.  Although Delphi has many database components at its disposal, none of them are really designed to work reliably with MySQL. Since most of the database components are designed to work with other Microsoft technologies only, they cannot directly be used to connect to a MySQL server.

    There was our problem. We needed something that would bridge the gap between the server and the application.  Luckily for us, the folks at MySQL designed what is called a database connector that handles the communication between the server and an application. So what we are going to do is use ADO components that are available in Delphi to access the information provided by the connector:

    More Delphi-Kylix Articles
    More By Leidago


       · MYSQL is a very powerful and easy to use database server that is freely available...
     

    DELPHI-KYLIX ARTICLES

    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...
    - Using the Client Dataset in File-Based Archi...
    - Demystifying the Client Dataset
    - Working with INI Files in Delphi
    - Creating Data Link (UDL) Files in Delphi
    - Looking at the Details for an Invoicing Appl...
    - Invoicing in Delphi: Show Me the Money
    - Saving Images and Binary Files to a Database...
    - Saving Files to a Database using Delphi: Sav...
    - Creating CF Applications and Integrating a S...
    - Using Try and Finally to Help Prevent Memory...
    - The Implementation of an FTP Server
    - FTP Server: The Theory







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway