<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Delphi</title>
        <description>Forum for MySQL and Delphi.</description>
        <link>https://forums.mysql.com/list.php?49</link>
        <lastBuildDate>Wed, 15 Apr 2026 22:20:46 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?49,740771,740771#msg-740771</guid>
            <title>Move MySQL database to Cloud (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,740771,740771#msg-740771</link>
            <description><![CDATA[ I have a large Delphi 10.2 application that uses MySQL database with largest table about 10M records.  How can I best convert this vcl application to cloud?<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Thu, 29 May 2025 19:32:45 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,711946,711946#msg-711946</guid>
            <title>FireDAC Query Editor (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,711946,711946#msg-711946</link>
            <description><![CDATA[ I just set up an new computer (Windows 11) with Delphi 10.2 and MySQL.  It all works fine except where I try to execute a MySQL query using the MySQL Query Editor.  It gives the following error:<br />
<br />
[FireDAC][Phys][MySQL]-1104.  Failed to initialize embedded server.  See MySQL log files for details.<br />
<br />
I probably need to have<br />
<br />
LIBMYSQLD.DLL included somewhere but I don&#039;t know where, if this is even the cause of the problem.<br />
<br />
Can someone help me please?<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Mon, 04 Dec 2023 17:39:58 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,710429,710429#msg-710429</guid>
            <title>ODBC Connector 8.00.28 and above (2 replies)</title>
            <link>https://forums.mysql.com/read.php?49,710429,710429#msg-710429</link>
            <description><![CDATA[ The openSchema(...) function has changed since the ODDBC Connector 8.00.28 and seems to return the data related to all the schemas instead of returning the data only related to the schema to which I am connected.<br />
The versions 8.00.24 to 8.00.27 are ok. The problem starts with the version 8.00.28 and still remains in the version 8.2 of the connector.]]></description>
            <dc:creator>Emmanuel Duverney</dc:creator>
            <category>Delphi</category>
            <pubDate>Tue, 19 Mar 2024 07:26:59 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,708660,708660#msg-708660</guid>
            <title>Project Directory (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,708660,708660#msg-708660</link>
            <description><![CDATA[ By default the code is in the<br />
<br />
   ...\Project\<br />
<br />
directory and after compilint the executable is in the<br />
<br />
   ...\Win64\Debug\<br />
<br />
directory.  If I want to add a<br />
<br />
   ...\Project\AmeriVet\Current\<br />
<br />
directory and put my code in that directory and compile from that directory, how can I make the resulting executable still be in the<br />
<br />
   ...\Win64\Debug\<br />
<br />
directory?<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 05 Apr 2023 14:31:58 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,707240,707240#msg-707240</guid>
            <title>only_full_group_by error (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,707240,707240#msg-707240</link>
            <description><![CDATA[ When using the following routine<br />
<br />
function Total_Balance( dDate: TDateTime; nClino: Integer ): Double;<br />
var<br />
  aQuery: TFDQuery;<br />
begin<br />
  Result := 0;<br />
  aQuery := TFDQuery.Create( AConnection );<br />
  aQuery.Connection := AConnection;<br />
  aQuery.SQL.Text := &#039;Select Clino, &#039; +<br />
                     &#039;Sum( ToBePaid ) as nTotal &#039; +<br />
                     &#039;from Invoice &#039; +<br />
                     &#039;where Clino = :C&#039;;<br />
  aQuery.ParamByName(&#039;C&#039;).AsInteger := nClino;<br />
  aQuery.IndexFieldNames := &#039;Clino&#039;;<br />
  aQuery.IndexesActive := true;<br />
  aQuery.open;<br />
  aQuery.Active := true;<br />
end;<br />
<br />
I get a message telling me the list contains a nonaggregated column which is uncompatable with only_full_group_by.  <br />
<br />
What&#039;s going on.  I used this routine without a problem for months, and now I get it, but only on some computers (same version of MySQL and my software).<br />
<br />
Help!<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Tue, 17 Jan 2023 19:51:38 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,706831,706831#msg-706831</guid>
            <title>Error in MySQL routine (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,706831,706831#msg-706831</link>
            <description><![CDATA[ I receive the error message &quot;Active cannot have a null value&quot; when I run the following routine:<br />
<br />
  ptQuery := TFDQuery.Create( AConnection );<br />
  ptQuery.Connection := AConnection;<br />
  ptQuery.SQL.Text := &#039;Update Patient P &#039; +<br />
                      &#039;set P.Active = &#039; +<br />
                      &#039;( select R.RecDate from Records R &#039; +<br />
                      &#039;where R.Patno = P.Patno and R.RecDate between :Dt1 and :Dt2 &#039; +<br />
                      &#039;order by R.RecDate desc limit 1 )&#039;;<br />
  ptQuery.ParamByName(&#039;Dt1&#039;).AsDate := DateOf( StrToDate(&#039;09/13/1936&#039;) );<br />
  ptQuery.ParamByName(&#039;Dt2&#039;).AsDate := DateOf( IncYear( Date, -4 ) );<br />
  ptQuery.ExecSQL;<br />
<br />
How does it need to be altered to prevent the error?<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Sat, 26 Nov 2022 02:42:50 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,705420,705420#msg-705420</guid>
            <title>New install, libmysql.dll issues (2 replies)</title>
            <link>https://forums.mysql.com/read.php?49,705420,705420#msg-705420</link>
            <description><![CDATA[ I have mySQL80 server v8.0.27 64 bit Community Server running on a Windows 10 machine with a 32bit application written in Delphi.  Everything is cool and works.  Trying to set up new windows 10 machine as server.  Basically trying to duplicate what I have.  Tried first installing latest v8.0.29 server.  I know I have to have libmysql.dll available for my app, so used the version that came with .29.  When running the app and attempting to load the database, I get the dreaded error - libmysql.dll found, but could not be loaded....  Ok, so then copied the libmysql.dll from first server over to new server to app folder, still get the error.  Then figured I can&#039;t upgrade MySQL without upgrading the Delphi app?  <br />
So deleted .29 server and workbench install and installed .27 server and workbench.  Now that install is identical (as far as I know) to the one on my first server.  Have identical libmysql.dll in app folder on new server as is on old server.  Still get the error - &quot;libmysql.dll found, but could not be loaded.  Check compile-target and library compatibility.&quot;  Everything is the same!  What could be causing this issue?  What is the compile-target?  The Delphi application and how it was compiled?  Or is it a 64bit vs 32bit issue?  <br />
<br />
Any help would be appreciated.]]></description>
            <dc:creator>Doug Munday</dc:creator>
            <category>Delphi</category>
            <pubDate>Sun, 24 Jul 2022 22:08:07 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,702857,702857#msg-702857</guid>
            <title>dbgrid delphi 5 mysql 5.7 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?49,702857,702857#msg-702857</link>
            <description><![CDATA[ using mysql 5.7 with devart vcl dbgrid and delphi 5<br />
<br />
the one thing I am missing, looking at the grid<br />
and clicking on a row is how to get the row record id.<br />
<br />
everything else is ok, <br />
but I need the id of that record,<br />
and I am missing the simple clue as to how to get it.<br />
titles and columns are easy. record, not so much.<br />
<br />
thanks for any help.]]></description>
            <dc:creator>bob crownfield</dc:creator>
            <category>Delphi</category>
            <pubDate>Mon, 07 Feb 2022 17:42:46 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,699932,699932#msg-699932</guid>
            <title>DAC for MySQL 3.3.2 is out! (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,699932,699932#msg-699932</link>
            <description><![CDATA[ Microolap Direct Access Components for MySQL and Delphi/C++Builder, also known as MySQLDAC is a Borland/Embarcadero Delphi/C++Builder component set for direct connect to MySQL database server.<br />
<br />
Rad Studio 11.0 Alexandria support added.<br />
This release also includes improvements and bug fixes.<br />
<br />
Full changelog:<br />
<br />
[!] Rad Studio 11.0 Alexandria support added<br />
[-] &quot;TMysqlResult leak when SQL is incorrect&quot; bug fixed (Thanks to Nicholas Ring)<br />
[-] &quot;Range overflow during SSL library initialization&quot; bug fixed<br />
[-] &quot;TMySQLUpdateSQL returns incorrect LAST_INSERT_ID&quot; bug fixed<br />
<br />
You’re welcome to download the DAC for MySQL v3.3.2 right now at:<br />
<a href="http://microolap.com/products/connectivity/mysqldac/download/"  rel="nofollow">http://microolap.com/products/connectivity/mysqldac/download/</a>,<br />
or login to your personal area on our site at<br />
<a href="http://microolap.com/my/downloads/"  rel="nofollow">http://microolap.com/my/downloads/</a><br />
<br />
Please direct questions or report bugs at <a href="mailto:&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#109;&#105;&#99;&#114;&#111;&#111;&#108;&#97;&#112;&#46;&#99;&#111;&#109;">&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#109;&#105;&#99;&#114;&#111;&#111;&#108;&#97;&#112;&#46;&#99;&#111;&#109;</a>.]]></description>
            <dc:creator>Aleksandr Andreev</dc:creator>
            <category>Delphi</category>
            <pubDate>Mon, 29 Nov 2021 07:59:02 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,695908,695908#msg-695908</guid>
            <title>mjbcomp	     Posts: 2	     Joined: Tue 13 Apr 2021 22:45	     Contact: Contact mjbcomp  Is it possible to find out which user has a ROWLOCK on a table? (2 replies)</title>
            <link>https://forums.mysql.com/read.php?49,695908,695908#msg-695908</link>
            <description><![CDATA[ i am trying to determine which user has a record locked in &#039;edit&#039; mode.<br />
<br />
In Rad Studio (Delphi) before i try and change a ROW value i use this code:<br />
<br />
try<br />
   tCustomer.Edit;<br />
except on E: EDAError do<br />
begin<br />
   if e.ErrorCode = 1205 then Showmessage(&#039;Record in Use&#039;);<br />
end;<br />
<br />
This part works flawlessly as the MYDAC TMyTable or TMyQuery returns the 1205 error code indicating the current record/row is locked by another user. But if that user has walked away from their desk to go to lunch or if they&#039;re on the phone i want the second user who needs to get access to the record to at least know WHICH user has the record locked.<br />
<br />
My Tables use Pessemistic locking.  My database uses READ COMMITTED for the isolation level and i set the innodb_lock_wait_timeout to 1 for these specific operations in my client session so they will immediately get acknowledgement that the record they are attemtping to EDIT is in use by another user.<br />
<br />
I&#039;m wondering if after determining the record is &#039;in-use&#039; is there some other Server side stored procedure or sql command the client connection can run to determine which MySQL connection_ID or user has the record locked?<br />
<br />
<br />
Is something like this possible?<br />
<br />
I know you can query CONNECTION_ID() or CURRENT_USER() but that is for the current client. I need a way to get at which CONNECTION_id or User OR WINDOWS LOGIN ACCOUNT is is.<br />
<br />
Thanks in advance.]]></description>
            <dc:creator>Michael Britt</dc:creator>
            <category>Delphi</category>
            <pubDate>Thu, 15 Apr 2021 02:37:44 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,695025,695025#msg-695025</guid>
            <title>ANN: DAC for MySQL 3.3.1 is out! (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,695025,695025#msg-695025</link>
            <description><![CDATA[ Microolap Direct Access Components for MySQL and Delphi/C++Builder, also known as MySQLDAC is a Borland Delphi/C++Builder component set for direct connect to MySQL database server.<br />
This release includes improvements and bug fixes.<br />
<br />
Full changelog:<br />
<br />
[-] &quot;The SplitStr function doesn&#039;t work properly sometimes&quot; bug fixed<br />
[-] &quot;Incorrect getting string non-unicode values cause an AV&quot; bug fixed<br />
[-] &quot;Incorrect buffer accessing&quot; bug fixed<br />
[-] &quot;Non-Unicode BLOB fields are being written incorrectly&quot; bug fixed<br />
[-] &quot;AV during LOAD DATA LOCAL INFILE statement execution&quot; bug fixed<br />
[-] &quot;M_BOOL_AS_INT compiler directive doesn&#039;t work with prepared datasets&quot; bug fixed<br />
[-] &quot;Corruption during BLOB field saving in MySQL without utf8 support&quot; bug fixed<br />
[-] &quot;Range checking error may occur with the DISTINCT statement&quot; bug fixed<br />
[-] &quot;Prepared statement doesn&#039;t work correctly with BLOB field&quot; bug fixed<br />
[-] &quot;Special Unicode characters like &quot;üäö&quot; in a column name lead to an error&quot; bug fixed<br />
<br />
<br />
You&#039;re welcome to download the DAC for MySQL v3.3.1 right now at: <a href="http://microolap.com/products/connectivity/mysqldac/download/"  rel="nofollow">http://microolap.com/products/connectivity/mysqldac/download/</a> ,<br />
or login to your personal area on our site at <a href="http://microolap.com/my/downloads/"  rel="nofollow">http://microolap.com/my/downloads/</a><br />
<br />
Please don&#039;t hesitate to ask any questions or report bugs at <a href="mailto:&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#109;&#105;&#99;&#114;&#111;&#111;&#108;&#97;&#112;&#46;&#99;&#111;&#109;">&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#109;&#105;&#99;&#114;&#111;&#111;&#108;&#97;&#112;&#46;&#99;&#111;&#109;</a>.]]></description>
            <dc:creator>Aleksandr Andreev</dc:creator>
            <category>Delphi</category>
            <pubDate>Thu, 25 Feb 2021 08:13:15 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,690760,690760#msg-690760</guid>
            <title>Computer Disk Usage (1 reply)</title>
            <link>https://forums.mysql.com/read.php?49,690760,690760#msg-690760</link>
            <description><![CDATA[ I have a written a program (Delphi 10.2, MySQL 8.021) in which I justed added the capability to selectively archive very old data into tables of identical structure.  I ran that feature overnight during which it moved about a half million records in four tables, and of course the computer is running flat out during the process.  This morning when I discontinued the process, the disk usage on the computer stayed at near 100%.  I eventually shut the computer down and restarted it, but the disk light stayed on constantly for hours and that made everything else so slow that it was useless to try to use it.  Then finally after about six hours it started acting normal again.  I think this must be MySQL related, and wondered if anyone has any insight into what might have been going on.  I&#039;ve also experienced, when importing data into some of my client&#039;s computers, onetime the process might take a half hour and the next might take 12 hours.  That would make restoring data, should the need arise, a very serious process if it shut down the system for a whole day.  Any help in understanding what is going on would be appreciated.<br />
<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Thu, 25 Feb 2021 15:07:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,690378,690378#msg-690378</guid>
            <title>&quot;if exists&quot; in clause (4 replies)</title>
            <link>https://forums.mysql.com/read.php?49,690378,690378#msg-690378</link>
            <description><![CDATA[ How can I alter this such that it doesn&#039;t error?  It works fine without the &quot;if exists?<br />
<br />
    ihQuery.SQL.Clear;<br />
    ihQuery.SQL.Add( &#039;drop index patno if exists on records&#039; );<br />
    ihQuery.ExecSQL;]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Sat, 03 Oct 2020 19:03:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,689495,689495#msg-689495</guid>
            <title>MySQL, When, Where clause (1 reply)</title>
            <link>https://forums.mysql.com/read.php?49,689495,689495#msg-689495</link>
            <description><![CDATA[ I have a MySQL table, Records with about four million records.  In the table are thousands of groups having the same Invno (integer) and Related (integer) values.  Each of these values has a Clinno (integer) value for the first record in that group, but for the other records in the group, Clinno is 0.  I need to update the table so that all records in all groups have the proper Clinno value in all records in the group, not just the first record.  How can I construct a &quot;update,case,when,where clause&quot; to get this done?<br />
<br />
Thanks.]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Fri, 14 Aug 2020 19:39:54 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,685429,685429#msg-685429</guid>
            <title>32-bit LibMySQL for 8.0? (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,685429,685429#msg-685429</link>
            <description><![CDATA[ Looking through the installs for MySQL 8.0 Servers and Connectors, I no longer see an x86 version of LibMySQL.dll.  Since Delphi FireDAC and our own custom connector both depend on this, a 32-bit version would be really important.  Is it available?<br />
<br />
What is &quot;plan B&quot; if it is not?  There are lots of 32-bit legacy apps out there (both Delphi and other languages) that need to be supported beyond end-of-life for 5.7.<br />
<br />
Please tell me it&#039;s there and I just can&#039;t find it...]]></description>
            <dc:creator>Lhomond Jones</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 25 Mar 2020 18:19:46 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,683425,683425#msg-683425</guid>
            <title>sha256_password (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,683425,683425#msg-683425</link>
            <description><![CDATA[ I have a large Delphi 10 application using MySQL that we&#039;re just starting to install for clients.  It&#039;s primarily 64 bit, but we have one clinic that has 2 workstations that use 32 bit Windows 7.  We installed a 32 bit applciation on one of them and it works fine.  On the other, however, we get a<br />
<br />
sha256_password<br />
<br />
authentication error.  What is the problem and how do I fix it.  We use MySQL 8.0.<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Sat, 04 Jan 2020 22:05:17 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,679328,679328#msg-679328</guid>
            <title>free query if it exists (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,679328,679328#msg-679328</link>
            <description><![CDATA[ Assume I have a query<br />
<br />
dQuery := TFDQuery.Create( AConnection );<br />
with dQuery do<br />
begin<br />
  Connection := AConnection;<br />
  SQL.Add( &#039;Select * from MyTable&#039; );<br />
  Open;<br />
end;<br />
<br />
This query may or may not have been opened at at time when I want to exit a procedure.  If it has been created I want to<br />
<br />
  dQuery.Free;<br />
<br />
However, if it has not been created, this last command will bomb.<br />
<br />
Is there a procedure something like<br />
<br />
if dQuery exists<br />
  dQuery.Free;<br />
<br />
Please tell me what I need to replace the &quot;if dQuery exists&quot; with inorder to make &quot;dQuery.Free&quot; conditional on whether it exists or not.<br />
<br />
Thank you,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 20 Nov 2019 14:35:42 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,678998,678998#msg-678998</guid>
            <title>Delphi 10.2, MySQL, Cloud (6 replies)</title>
            <link>https://forums.mysql.com/read.php?49,678998,678998#msg-678998</link>
            <description><![CDATA[ I have a large Delphi 10.2 app that uses MySLQ as a database.  It is a VCL app.  How much modification in the program would be required for me to access the database on a cloud server?<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Fri, 14 Aug 2020 17:58:11 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,671188,671188#msg-671188</guid>
            <title>Routine needs Streamlining (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,671188,671188#msg-671188</link>
            <description><![CDATA[ I am using the following routine in Delphi/FireDAC.  The RECORDS table has about 3 million records and the routine takes way too much time to be practical.  I&#039;m sure it can be streamlined using JOIN, but I can&#039;t figure out how to do it.  I would like very much if someone can give me some pointers that I can use.<br />
<br />
The routine is:<br />
<br />
  // patient<br />
  pQuery := TFDQuery.Create( AConnection );<br />
  with pQuery do<br />
  begin<br />
    Connection := AConnection;<br />
    SQL.Add( &#039;Select Patno, TargSel from Patient where TargSel = true&#039; );<br />
    Open;<br />
    while not EOF do<br />
    begin<br />
      // targservice<br />
      tsQuery := TFDQuery.Create( AConnection );<br />
      with tsQuery do<br />
      begin<br />
        Connection := AConnection;<br />
        SQL.Add( &#039;Select * from TargService where Targno = :T and AllIn = true&#039; );<br />
        ParamByName(&#039;T&#039;).AsInteger := HotTargno;<br />
        Open;<br />
        while not EOF do<br />
        begin<br />
          // records<br />
          lAllIn := true;<br />
          rQuery := TFDQuery.Create( AConnection );<br />
          with rQuery do<br />
          begin<br />
            Connection := AConnection;<br />
            SQL.Add( &#039;Select Servno from Records where Servno = :S and SSDO = true and RecDate between :St and :E&#039; );<br />
            ParamByName(&#039;S&#039;).AsInteger := tsQuery.FieldValues[&#039;Servno&#039;];<br />
            ParamByName(&#039;St&#039;).AsDate := dStart;<br />
            ParamByName(&#039;E&#039;).AsDate := dEnd;<br />
            IndexFieldNames := &#039;Servno&#039;;<br />
            IndexesActive := true;<br />
            Open;<br />
            if EOF then<br />
              lAllIn := false;<br />
          end;<br />
          Next;<br />
          if not lAllIn then<br />
            Break;<br />
        end;<br />
        if not lAllIn then<br />
          AConnection.ExecSQL( &#039;Update Patient set TargSel = false where Patno = :P&#039;,<br />
            [pQuery.FieldValues[&#039;Patno&#039;]] );<br />
      end;<br />
      Next;<br />
    end;<br />
    Free;<br />
  end;<br />
<br />
Thank you.<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 05 Dec 2018 19:09:39 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,670448,670448#msg-670448</guid>
            <title>MySQL 8 Client (3 replies)</title>
            <link>https://forums.mysql.com/read.php?49,670448,670448#msg-670448</link>
            <description><![CDATA[ I have the MySQL 8.013 server running nicely and am developing an application on it.  Now I need to set up a work station for testing in multiuser environment.  Having a &#039;flat file&#039; background, I don&#039;t have a good concept of the client setup.  I guess my main questions are<br />
<br />
1.  How does one install it?<br />
2.  How does one use it?<br />
<br />
I need as much detail as possible on these topics.  I&#039;ve tried to install it using the same installer that I used for installing Server, but no luck.  I&#039;ve spent several days pouring over the googled topics and the MySQL documentation with little good clear information.<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Mon, 12 Nov 2018 03:21:12 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,669048,669048#msg-669048</guid>
            <title>Creating Password hash for the new &#039;caching_sha2_password&#039; (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,669048,669048#msg-669048</link>
            <description><![CDATA[ Hello, my first post in this forum - I hope I do everything fine...<br />
<br />
I have my own MySQL client developed in Delphi to connect to the MySQL server. I like my own client, since I want to offer a one file .exe program to my users for portable working.<br />
<br />
Until now, everything worked fine - but now I have to generate the new password encoding. As far as I understood I have to do this with SHA 256 - and Delphi offers inside the unit Hash the THashSHA2 record to do this.<br />
<br />
But there are some things I don&#039;t understand: How do I handle the RSA Public Key received from the MySQL server inside the hash function. And how do I handle the auth-plugin-data received from the MySQL server?<br />
<br />
With the &quot;old&quot; password encoding I had this code:<br />
  sha1_reset(sha1_context);<br />
  //* stage 1: hash Password */<br />
  sha1_input(sha1_context, Password, AnsiStrings.StrLen(Password));<br />
  sha1_result(sha1_context, @hash_stage1[0]);<br />
  //* stage 2: hash stage 1; note that hash_stage2 is stored in the database */<br />
  sha1_reset(sha1_context);<br />
  sha1_input(sha1_context, @hash_stage1[0], SCRAMBLE_LENGTH);<br />
  sha1_result(sha1_context, @hash_stage2[0]);<br />
  //* create crypt AnsiString as sha1(message, hash_stage2) */;<br />
  sha1_reset(sha1_context);<br />
  sha1_input(sha1_context, PAnsiChar(Salt), SCRAMBLE_LENGTH);<br />
  sha1_input(sha1_context, @hash_stage2[0], SCRAMBLE_LENGTH);<br />
  //* xor allows &#039;from&#039; and &#039;to&#039; overlap: lets take advantage of it */<br />
  sha1_result(sha1_context, @scramled);<br />
<br />
  for I := 0 to SCRAMBLE_LENGTH - 1 do<br />
    Scramled<i> := AnsiChar(Byte(Scramled<i>) xor Byte(hash_stage1<i>));<br />
<br />
 Now I have to write my new code for the new password encoding. Can somebody assist me?</i></i></i>]]></description>
            <dc:creator>Nils Hoyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 19 Sep 2018 05:53:17 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,666729,666729#msg-666729</guid>
            <title>MySQL Blob Field (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,666729,666729#msg-666729</link>
            <description><![CDATA[ I have HTML code in a BLOB field.  How do I convert that to string?  I program with Delphi 10.2.<br />
<br />
Thanks,<br />
Jim Sawyer]]></description>
            <dc:creator>Jim Sawyer</dc:creator>
            <category>Delphi</category>
            <pubDate>Tue, 05 Jun 2018 14:39:39 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,666534,666534#msg-666534</guid>
            <title>Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,666534,666534#msg-666534</link>
            <description><![CDATA[ Hello<br />
<br />
There is MySQL database with table:<br />
<br />
CREATE TABLE `objects` (<br />
  `uniq_id` int(11) NOT NULL,<br />
  `dt` datetime NOT NULL,<br />
  `valid` tinyint(1) NOT NULL,<br />
  `id` int(11) NOT NULL,<br />
  `ip` varchar(50) NOT NULL,<br />
  PRIMARY KEY (`uniq_id`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8;<br />
<br />
I&#039;m using ADO components and MySQL ODBC Connector to access database and have a problem when debug application.<br />
<br />
Error occure when I assign sql query with parameter. You can see it below.<br />
Error message: &quot;Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another&quot;<br />
<br />
<br />
  ADOConnection1.ConnectionString := &#039;Provider=MSDASQL.1;Password=root;Persist Security Info=True;User ID=root;Data Source=MyDataSource;Initial Catalog=test_db&#039;;<br />
<br />
      GetLocksQuery.Close();<br />
      GetLocksQuery.SQL.Text :=<br />
        &#039;select o.* from objects o &#039;+<br />
        &#039;INNER JOIN &#039;+<br />
        &#039;(SELECT id, MAX(DT) AS MAX_DT FROM objects GROUP BY id) oo &#039;+<br />
        &#039;ON (oo.id = o.id) AND (oo.MAX_DT = o.DT) &#039;+<br />
        &#039;WHERE valid = 1 and o.ip = :object_ip &#039;; // HERE ERROR!<br />
<br />
      GetLocksQuery.Parameters.ParamByName(&#039;object_ip&#039;).Value := &#039;127.0.0.1&#039;;<br />
      GetLocksQuery.Open();<br />
      if not GetLocksQuery.Eof then<br />
      begin<br />
        Caption := GetLocksQuery.FieldByName(&#039;id&#039;).AsString;<br />
      end;<br />
      GetLocksQuery.Close();<br />
<br />
Error appears in Delphi/Builder of all edition (6,7,RAD)<br />
<br />
When starting program without debuger - all is OK!<br />
<br />
I try reinstall ODBC connector - without changes]]></description>
            <dc:creator>Lev Amelin</dc:creator>
            <category>Delphi</category>
            <pubDate>Fri, 25 May 2018 06:55:42 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,666067,666067#msg-666067</guid>
            <title>Connect Delphi 32/64 bit vcl project to mysql server 8? (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,666067,666067#msg-666067</link>
            <description><![CDATA[ Anyone been successful?  I have been playing with dbexpress components and FireDAC and neither have been able to connect to my local instance of MySql server 8.0.11]]></description>
            <dc:creator>Damon Theis</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 02 May 2018 16:02:43 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,665914,665914#msg-665914</guid>
            <title>SQL string functions (1 reply)</title>
            <link>https://forums.mysql.com/read.php?49,665914,665914#msg-665914</link>
            <description><![CDATA[ Hi all<br />
I&#039;m trying to create a SQL statement as follows:<br />
Select Length(LastName) as LongLastName<br />
from Accounts<br />
where Length(LastName) &gt; 10<br />
<br />
I tried Len and Length, but thee error states &quot;operation not supported&quot;<br />
I have obviously got the wrong keyword for paradox and MySQL<br />
<br />
any help would be appreciated<br />
thx]]></description>
            <dc:creator>James Caravan</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 02 May 2018 15:56:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,662727,662727#msg-662727</guid>
            <title>Autoincrement value not returned when using join command (3 replies)</title>
            <link>https://forums.mysql.com/read.php?49,662727,662727#msg-662727</link>
            <description><![CDATA[ I got 3 tables creatred like this:<br />
<br />
<br />
CREATE TABLE IF NOT EXISTS `t1`<br />
(<br />
  `ID` int(11) NOT NULL AUTO_INCREMENT,<br />
  `CODE_T2` char(5) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `CODE_T3` char(5) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `SOMEDATA1` char(20) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `SOMEDATA2` char(20) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `EDITDATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,<br />
  PRIMARY KEY (`ID`)<br />
  )<br />
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;<br />
<br />
CREATE TABLE IF NOT EXISTS `t2`<br />
(<br />
  `ID` int(11) NOT NULL AUTO_INCREMENT,<br />
  `CODE` char(5) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `NAME` char(100) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `EDITDATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,<br />
  PRIMARY KEY (`ID`),<br />
  UNIQUE KEY `CODE` (`CODE`),<br />
  KEY `NAME` (`NAME`)<br />
)<br />
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;<br />
<br />
CREATE TABLE IF NOT EXISTS `t3`<br />
(<br />
  `ID` int(11) NOT NULL AUTO_INCREMENT,<br />
  `CODE` char(5) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `NAME` char(100) COLLATE utf8_slovenian_ci DEFAULT NULL,<br />
  `EDITDATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,<br />
  PRIMARY KEY (`ID`),<br />
  UNIQUE KEY `CODE` (`CODE`),<br />
  KEY `NAME` (`NAME`)<br />
)<br />
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci;<br />
<br />
<br />
For view and edit data query like this is used:<br />
<br />
select `t1`.*, `t2`.NAME NAME_T2, `t3`.NAME NAME_T3<br />
from `t1`<br />
left outer join `t2` on `t2`.CODE = `t1`.CODE_T2<br />
left outer join `t3` on `t3`.CODE = `t1`.CODE_T3;<br />
<br />
When there is need to change/edit some data in `t1` and after posting changed data to database table cursor should stay at same place. It behaved properly in MySQL version 5.5.28, but at some MySQL version 5.5.xx database no longer return autoincrement value from `t1`, therefore data access component used in aplication no longer can return to proper position in table after editing or inserting any value.<br />
<br />
It happens only when more than one additional table is joined trough query. If only one table is joined it behave properly, so bug might be left unnoticed.<br />
<br />
However, even if only one join table is used, but with additional sort from that joined table, autoincrement field is also not properly returned. For example in query like this:<br />
<br />
select `t1`.*, `t2`.NAME NAME_T2<br />
from `t1`<br />
left outer join `t2` on `t2`.CODE = `t1`.CODE_T2<br />
order by `t2`.NAME, `t1`.SOMEDATA1 ;<br />
<br />
In cases like that, autoincrement value is not returned and table cursor is moved to first position after editing data.]]></description>
            <dc:creator>Krunoslav Farkas</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 29 Nov 2017 15:47:28 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,650284,650284#msg-650284</guid>
            <title>Connecting sqlconnection usin mysql driver (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,650284,650284#msg-650284</link>
            <description><![CDATA[ I can connect my application on Delphi xe8 using the tsqlconnection using the SQLite driver but I am struggling with MySQL driver. I&#039;m using MySQL community edition and windows10. dbxerror:Driver could not be properly initialized. Client library may be missing, not installed properly, of the wrong version, or the driver may be missing from the system path..]]></description>
            <dc:creator>Luthando Madubedube</dc:creator>
            <category>Delphi</category>
            <pubDate>Sat, 10 Sep 2016 18:18:19 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,650247,650247#msg-650247</guid>
            <title>Devart Introduces a New VirtualDAC and Updated Delphi Data Access Components (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,650247,650247#msg-650247</link>
            <description><![CDATA[ Devart, Czech software vendor of database tools and data connectivity solutions, released a new product in the Delphi Data Access Components product line - VirtualDAC, formerly known as VirtualTable Component. VirtualDAC consists of components that provide such capabilities as working with non-tabular data, performing SQL-queries to data in memory or to data from sources in different RDBMS&#039;es etc., that are not available for standard data access components. In addition to the well-known TVirtualTable component, VirtualDAC is supplemented with two new components - TVirtualQuery and TVirtualDataSet.<br />
<br />
VirtualQuery. The TVirtualQuery component is used to retrieve data with SQL queries from sources, that are any TDataSet descendants. Due to this, you can build complex SQL queries to in-memory data (data sources are TVirtualTable, TVirtualDataSet or another TVirtualQuery) or to data stored in different RDBMS&#039;es.<br />
<br />
VirtualTable. The TVirtualTable component represents an in-memory data storage that does not have linked data files. TVirtualTable allows to load data from a XML or CSV file, or from an existing dataset, and then process the data in the usual way, as in any TDataSet descendant.<br />
<br />
VirtualDataSet. The TVirtualDataSet component is data wrapper that doesn&#039;t store data in memory and interacts with data using event handlers. It allows to represent arbitrary data (arrays, lists, objects, etc.) as TDataSet descendants and link it with any DB-aware components to display data or modify it.<br />
<br />
DACs updated too. The rest of the DAC products are also updated. In this version UniDAC 6.4 got the new component - TVirtualQuery. And the TVirtualDataSet component was added to all the DAC products.<br />
<br />
Learn more about Virtual Data Access Components at <a href="https://http://www.devart.com/virtualdac/"  rel="nofollow">https://http://www.devart.com/virtualdac/</a>]]></description>
            <dc:creator>Dmitry Nikolaenko</dc:creator>
            <category>Delphi</category>
            <pubDate>Fri, 09 Sep 2016 12:22:03 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,648775,648775#msg-648775</guid>
            <title>Delphi MyDac and android/iOS (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,648775,648775#msg-648775</link>
            <description><![CDATA[ I are using Delphi Berlin 10.1 and devart MyDac component.<br />
<br />
I would like to embedded a stand lone database in both iOS and Android devices for my apps.<br />
<br />
when I compile my delphi project for android I get an error comming up that says I need a libmysqld.so (iOS it qould be libmysqld.mydll) but I cannot find any information on how to generate the .so file or where to deploy it to in my device.<br />
<br />
1. Can I create a Embedded server for my devices?<br />
<br />
2. If so how do I do it?<br />
<br />
3. Then where do I deploy it to.]]></description>
            <dc:creator>Daniel Rogers</dc:creator>
            <category>Delphi</category>
            <pubDate>Tue, 02 Aug 2016 13:28:01 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?49,647427,647427#msg-647427</guid>
            <title>Retrieve Blob in mysql using Stored Procedure (no replies)</title>
            <link>https://forums.mysql.com/read.php?49,647427,647427#msg-647427</link>
            <description><![CDATA[ I have a table that a blob in one of its columns . <br />
I would like to retrieve the emp_id ( int datatype ) and its emp_image(blob) into a file structure ? <br />
<br />
How do I that using mysql stored procedures?  . Thanks in advance.]]></description>
            <dc:creator>Zahir Mohideen</dc:creator>
            <category>Delphi</category>
            <pubDate>Wed, 29 Jun 2016 12:27:00 +0000</pubDate>
        </item>
    </channel>
</rss>
