Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
[SOLVED] Lazarus 0.9.30.2 MySQL 5.5.13 GRANT and REVOKE
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Lazarus 0.9.30.2 MySQL 5.5.13 GRANT and REVOKE (Read 469 times)
lazguy
New member
Posts: 42
[SOLVED] Lazarus 0.9.30.2 MySQL 5.5.13 GRANT and REVOKE
«
on:
February 03, 2012, 06:31:40 pm »
Hi All, here again !!!!!!
Is it possible to use the MySQL SQL commands GRANT and REVOKE directly from my code ?
Please, how to do this ?
«
Last Edit: February 08, 2012, 02:35:42 am by lazguy
»
Logged
BigChimp
Hero Member
Posts: 1012
Re: Lazarus 0.9.30.2 MySQL 5.5.13 GRANT and REVOKE
«
Reply #1 on:
February 03, 2012, 07:35:23 pm »
I suspect so. What have you tried up to now? What did go wrong and what error messages appeared?
There's a difference between SQL statements returning data (e.g. SELECT statements) and statements that do something (INSERT, UPDATE, calling some stored procedures, GRANT, REVOKE).
For the latter you use, IIRC, the Execute method of the query object. See the wiki on databases (e.g. SQLDB Tutorial1) for more details...
Edit: seems you're fairly new here. Some tips: it helps to search through the wiki and forum for things... Also, in general, the FPC documentation is excellent.
I know I had big troubles getting database access to work, not having a Delphi background.
It helps if you tell us what you tried (or tried searching for) and what failed, what Lazarus version, what operating system you're using... this way guessing games will hopefully be limited.
Good luck,
BigChimp
«
Last Edit: February 03, 2012, 07:38:42 pm by BigChimp
»
Logged
CheckRide
remote control and other open source projects:
https://bitbucket.org/reiniero/
ludob
Hero Member
Posts: 623
Re: Lazarus 0.9.30.2 MySQL 5.5.13 GRANT and REVOKE
«
Reply #2 on:
February 03, 2012, 07:40:40 pm »
Use TMysqlxxConnection.ExecuteDirect. Replace xx with the MySQL version you are using.
Logged
lazguy
New member
Posts: 42
Re: Lazarus 0.9.30.2 MySQL 5.5.13 GRANT and REVOKE
«
Reply #3 on:
February 06, 2012, 02:51:31 pm »
Thank You very Much, BigChimp and ludob.
It is possible.
Problem Solved.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
[SOLVED] Lazarus 0.9.30.2 MySQL 5.5.13 GRANT and REVOKE
Recent
StringGrid.LoadFromCSVFil...
by
tedsmith
[
Today
at 11:17:52 pm]
TaChart ternary plot func...
by
ccrause
[
Today
at 10:53:15 pm]
Things went wrong install...
by
garlar27
[
Today
at 10:46:45 pm]
Installing Lazarus/FPC on...
by
Bruce Mayo
[
Today
at 10:21:17 pm]
"Tween" two images
by
TheBlackSheep
[
Today
at 09:38:04 pm]
another bug?
by
circular
[
Today
at 08:36:16 pm]
BGRABitmap 5.7.1 won't co...
by
circular
[
Today
at 08:24:59 pm]
Q about capabilities of t...
by
ludob
[
Today
at 07:39:16 pm]
Cross Compile
by
Leledumbo
[
Today
at 05:23:05 pm]
Stable database?
by
BigChimp
[
Today
at 03:27:28 pm]