Nov 19
I am trying to build an app using MySQL and of course Delphi with ZeosDBO components.
Drop a ZConnection.
- Set your User, Password, Host, Port and Protocol (and any other parameters if needed).
- Set Connected to True.
Drop a ZQuery (do not mistake with ZReadOnlyQuery).
- Set the Connection to your active ZConnection.
- Set the Sql property to something like SELECT * FROM MyTable.
- Set Active to True.
Drop a DataSource from the Data Access tab.
- Set the DataSet to your active ZQuery.
- Drop a DBGrid from the Data Controls tab.
- Set the Datasource to your DataSource.
If all is ok you should now be able to see the records from your table.
Related Posts:

