Autor |
Beitrag |
José Fonseca
Hält's aus hier
Beiträge: 10
|
Verfasst: Fr 23.08.02 02:21
Is there a version of MySQL with support for transactions, which can be used with Delphi? Thanks.
_________________ José
|
|
bis11
      
Beiträge: 1247
Erhaltene Danke: 2
Apple Mac OSX 10.11
|
Verfasst: Fr 23.08.02 10:41
Show on the site : sourceforge.net/projects/zeoslib/This component can be connected to MySQL-Server.A demo participates also. It's very simple to write a program with this components. Moderiert von Tino: Neuer Link zu ZeosLib eingefügt.
|
|
neojones
      
Beiträge: 1206
Erhaltene Danke: 1
|
Verfasst: Fr 23.08.02 11:30
But the major problem is: mySQL does not support transaction (if you mean commit and rollback as transaction).
_________________ Ha! Es compiliert! Wir können ausliefern!
|
|
bis11
      
Beiträge: 1247
Erhaltene Danke: 2
Apple Mac OSX 10.11
|
Verfasst: Fr 23.08.02 11:42
Is it a server from a provider ? When yes, the MySQL-Server is behind a Firewall. Then you must use phpMyAdmin or SQLAdmin.
|
|
ao
      
Beiträge: 145
Win XP Prof.
D7 Ent.
|
Verfasst: Fr 23.08.02 12:00
@neojones
MySQL Server supports transactions with the InnoDB and BDB Transactional table handlers. However, the non-transactional table types in MySQL Server such as MyISAM follow another paradigm for data integrity called "Atomic Operations''. Atomic operations often offer equal or even better integrity with much better performance. With MySQL Server supporting both paradigms, the user is able to decide if he needs the speed of atomic operations or if he need to use transactional features in his applications. This choice can be made on a per-table basis.
@bis11
Not every provider prevent access to a mySQL-Database on his server from a remote-system.
@José Fonseca
The Zeos-DB-Components support transactions.
Andreas
|
|
JAFonseca
Hält's aus hier
Beiträge: 1
|
Verfasst: Fr 23.08.02 15:57
The project I'm working in consists of a server computer, running Windows with Apache+MySQL installed, and client computers, which have a client application that sends requests (via sockets) to the server.
In the server App, I need to connect directly with MySQL. The data access needs to be safe, so I was thinking of using transactions. But if the other non-transactional MySQL table types offer security (with those atomic operations) I could use them instead...
Currently, I am making tests for the server app, and I've managed to connect to the MySQL database using the dbExpress components and using the DataSource module.
I don't know which method is better (dbExpress, Zeus, mysql.pas, ...). I need to choose one that is reliable, versatile and with long-term support & update. Which one do you recommend? I was thinking in using dbExpress...
Thanks a lot for all the help.
_________________ - José Fonseca -
|
|
José Fonseca 
Hält's aus hier
Beiträge: 10
|
Verfasst: Mo 26.08.02 12:27
Oops, sorry... I registered two usernames... this is the one I'll use...
So, could you tell me which component you recommend? Thanks.
_________________ José
|
|
ao
      
Beiträge: 145
Win XP Prof.
D7 Ent.
|
Verfasst: Mo 26.08.02 14:20
Hello José,
I prefer the Zeos-DB-Components, because they are open-source and support many databases like MySql, PostgreSql, Interbase, Oracle, Microsoft SQL, and IBM DB2.
Andreas
|
|
José Fonseca 
Hält's aus hier
Beiträge: 10
|
Verfasst: Mo 26.08.02 17:07
Hi Andreas,
Thanks for the advice. I'm trying to install ZeosDB now... and I could use some help...
The instructions seem to be the following:
Zitat: | WINDOWS INSTALL
1. Unpack the archive with components
2. Copy libmysql.dll and/or libpq.dll into
your Windows/System directory
3. Edit Zeos.inc file. You may set there you language,
maximum quantity of supported memo fields, etc.
4. Add to Delphi Library Path pathes to XXX, XXX\common, XXX\dbase,
where XXX - ZeosDBO directory.
5. Compile and install library in Delphi 3.0, 4.0, 5.0 and
C++ Builder 4.0 with the same version of dpk file.
Install dpk files in the next sequence:
ZCommonXXX, ZDbwareXXX, { ZMySqlXXX | ZPgSqlXXX | ZIbSqlXXX
| ZMsSqlXXX | ZOraSqlXXX }
|
I've done steps 1-4, but I'm not sure what to do regarding point 5... could you please help?
As for dbExpress, I tried using a second SQLClientDataSet/Datasource pair, to access a second table from the same MySQL database, and it always says "Catastrophic failure" when trying to activate the SQLClientDataSet... no clue about the problem...
_________________ José
|
|
José Fonseca 
Hält's aus hier
Beiträge: 10
|
Verfasst: Mo 26.08.02 17:32
Nevermind... I think I've managed to install it...
It was very simple in fact...
Open, Compile and Install: ZCommon6.dpk, ZDbware6.dpk and ZMySql6.dpk. Right? I'm using Delphi 6...
_________________ José
|
|
ao
      
Beiträge: 145
Win XP Prof.
D7 Ent.
|
Verfasst: Mo 26.08.02 17:42
Hi José
If you have Delphi 6, you must open the files ZCommon6.dpk, ZDbware6.dpk and ZMySql6.dpk one after another and in this order. After you have opened one of these files, you musst click on the compile-button and then press the install-button. If you have installed all of the three packages, you can now use the zeos-components to access a mySQL database.
For the "Catastrophic failure"-problem i have no answer, sorry.
Andreas
|
|
José Fonseca 
Hält's aus hier
Beiträge: 10
|
Verfasst: Mo 26.08.02 18:56
It's working great!
Yes, I didn't give up and managed to install it... Anyway, thanks for your help Andreas...
Just for testing, I'm adapting a simple application I had done with PHP+MySQL, to manage clients, domains and users of a web hosting server, and it's working very well! It has two interconnected master-detail relations, and was extremely easy to adapt to Delphi+Zeos, using the same MySQL database structure...
I guess dbExpress catastrophicaly sucks then... 
_________________ José
|
|