Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-02

How to use MySQL with freepascal?

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Karl Steffen Schmidt

Hello,

can anybody tell me how to access MySQL from FreePascal. My operatingsystem is SuSE Linux 7.0 Pro. Where can I get any information or documentation?

Thanx

kss

Reply by email

j.urban
to Karl Steffen Schmidt

Include the 'mysql' unit in your uses...

I believe the mysql unit is now distributed with the FreePascal packages so you probably already have it, but if not you can also get it here:

http://www.freepascal.org/packages/mysql.html

There is a sample program called 'testdb.pp' that includes examples of how to use several of the mysql functions -- such as: mysql_connect(), mysql_error(), mysql_select_db(), mysql_query, etc...

Karl Steffen Schmidt wrote 16 lines
Hello, can anybody tell me how to access MySQL from FreePascal. My operatingsystem is SuSE Linux 7.0 Pro. Where can I get any information or documentation? Thanx kss _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Peter Vreman
in order to use the ide under win32 with debug mode support does anyone have the ide source or the ide for the unit ver 1.1 ?
There is no ide for 1.1 yet. The problem is that the compiler uses classes and the IDE
uses objects.

Reply by email

Unknown author
to j.urban: Include the 'mysql' unit in your uses... I believe the mysql unit is now distributed with…

when i make this in the ppc386.cfg
-FEg:\pp\units\win32
result
Writing g:\pp\units\win32\util1.ppw
1725 Lines compiled, 0.8 sec
it works

when i make this in the ppc386.cfg
-FEg:\pp\units\$TARGET

Writing g:\pp\units\win32\util1.ppw
util1.pas(1726) Fatal: Can't Write PPU-File

result
BUG !

Lionel Drevon
Adeli http://www.adeli.fr
618 Av. Gal de Gaulle Tel 04 78 66 11 85
69760 Limonest Fax 04 78 66 04 33

Reply by email

Peter Vreman
Show quoted text 16 lines
when i make this in the ppc386.cfg -FEg:\pp\units\win32 result Writing g:\pp\units\win32\util1.ppw 1725 Lines compiled, 0.8 sec it works when i make this in the ppc386.cfg -FEg:\pp\units\$TARGET Writing g:\pp\units\win32\util1.ppw util1.pas(1726) Fatal: Can't Write PPU-File result BUG !

Should be fixed this week.

Reply by email