<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Embedded</title>
        <description>Forum for MySQL in embedded use cases in devices, appliances, applications.</description>
        <link>http://forums.mysql.com/list.php?58</link>
        <lastBuildDate>Sat, 18 May 2013 18:32:48 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?58,583431,583431#msg-583431</guid>
            <title>MySQL Embedded server on Windows hang in mysql_init with INFINITE WaitForSingleObject (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,583431,583431#msg-583431</link>
            <description><![CDATA[ Hi.<br />
<br />
I'm trying build a program with MinGW (4.7), using libmysqld, but it enter in a loop in mysql_init and never get out of this function. I debuged it and this is the call stack:<br />
<br />
myslq_init<br />
mysql_server_init<br />
init_embedded_server<br />
init_server_components<br />
plugin_init<br />
plugin_initialize<br />
int (** plugin_type_initialize)(st_plugin_int *)<br />
innobase_start_or_create_for_mysql<br />
recv_recovery_from_checkpoint_start_func<br />
recv_synchronize_groups<br />
rw_lock_s_lock_spin<br />
sync_array_wait_event<br />
os_event_wait_low<br />
WaitForSingleObject - with a wait time of INFINITE<br />
<br />
What is the problem?<br />
<br />
This is the program:<br />
<br />
#include &lt;stdio.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;stdarg.h&gt;<br />
#include &lt;mysql.h&gt;<br />
<br />
MYSQL *mysql;<br />
MYSQL_RES *results;<br />
MYSQL_ROW record;<br />
<br />
static char *server_options[] = {&quot;mysql_test&quot;,<br />
&quot;--defaults-file=c:\\mysql_embedded\\my.ini&quot;,<br />
NULL };<br />
int num_elements = (sizeof(server_options) / sizeof(char *)) - 1;<br />
static char *server_groups[] = {&quot;embedded&quot;, &quot;server&quot;, NULL };<br />
<br />
int main(void)<br />
{<br />
mysql_library_init(num_elements, server_options, (char **)server_groups);<br />
<br />
mysql = mysql_init(mysql);<br />
<br />
mysql_library_end();<br />
<br />
return 0;<br />
}<br />
<br />
This is my.ini:<br />
<br />
[embedded]<br />
basedir=C:/mysql_embedded<br />
datadir=C:/mysql_embedded/data<br />
language=C:/mysql_embedded/share/english<br />
<br />
[server]<br />
basedir=C:/mysql_embedded<br />
datadir=C:/mysql_embedded/data<br />
language=C:/mysql_embedded/share/english<br />
<br />
I compile with:<br />
<br />
g++ -o test test.cpp -Id:\MySQLServer5.6.10\include -Ld:\MySQLServer5.6.10\lib -l libmysqld -D__LCC__<br />
<br />
I have tried with different version of libmysqld: MySQL 5.1.68, 5.5.30, 5.6.10 but all hangs in myslq_init.<br />
<br />
I'm running it in VMware.<br />
<br />
What's the problem?]]></description>
            <dc:creator>Ismael Briones Vilar</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 08 Apr 2013 21:16:46 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,582458,582458#msg-582458</guid>
            <title>how do I get the files? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,582458,582458#msg-582458</link>
            <description><![CDATA[ I need the embedded server files for 5.5.17. <br />
 <br />
I neglected to install them originally. <br />
 <br />
I've re-run the installer multiple times and turned the embedded server on and <br />
it says installing but no files/folder appears.  I even tried a repair pass and <br />
still nothing. <br />
 <br />
How can I get the embedded server files/docs? <br />
 <br />
 <br />
Darrel Christenson]]></description>
            <dc:creator>Darrel Christenson</dc:creator>
            <category>Embedded</category>
            <pubDate>Wed, 27 Mar 2013 15:46:20 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,571315,571315#msg-571315</guid>
            <title>Can I some how use the MySQL Embedded (libmysqld.dll) using VB.NET ? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,571315,571315#msg-571315</link>
            <description><![CDATA[ Hi All (first post)<br />
<br />
Can I somehow use the MySQL Embedded (libmysqld.dll) using VB.NET ?<br />
<br />
All I want is an alternative to SQLite but using the MySQL Embedded Version<br />
<br />
If there is a simple sample then please point me in the right direction<br />
<br />
If this will not happen till some next release then I better tick along with SQLite and re-check MySQL in another year or so . . . <br />
<br />
Many Thanks in Advance for any answers <br />
<br />
Regards<br />
MD]]></description>
            <dc:creator>Mark Dicken</dc:creator>
            <category>Embedded</category>
            <pubDate>Wed, 17 Oct 2012 04:25:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,568105,568105#msg-568105</guid>
            <title>Mysql jdbc/mxj connector multiple instances error (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,568105,568105#msg-568105</link>
            <description><![CDATA[ Hi<br />
I am using MySQL with the jdbc and mxj connectors to embed the mysql database into my Java application. If I launch an instance of my Java program everything works fine, if I however try to start a second instance of the program I get the following error (both instances are running on the same windows machine) :<br />
<br />
 InnoDB: Operating system error number 32 in a file operation.<br />
InnoDB: The error means that another program is using InnoDB's files.<br />
InnoDB: This might be a backup or antivirus software or another instance<br />
InnoDB: of MySQL. Please close it to get rid of this error.<br />
<br />
Does anyone know Why this is this?<br />
Is there innoDB/MySQL configurations to be done to allow for concurrent access? Can an embedded mysql database not handle concurrent access?<br />
Thanks]]></description>
            <dc:creator>A Enfors</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 10 Sep 2012 15:23:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,558859,558859#msg-558859</guid>
            <title>table_row  is not constant  in innodb partitioned  table (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,558859,558859#msg-558859</link>
            <description><![CDATA[ Hi Team,<br />
<br />
As mentioned in mysql 5.5 documents <br />
<br />
TABLE_ROWS: The number of table rows in the partition.<br />
For partitioned InnoDB tables, the row count given in the TABLE_ROWS column is only an estimated value used in SQL optimization, and may not always be exact.<br />
Beginning with MySQL Cluster NDB 7.0.22 and MySQL Cluster NDB 7.1.11, TABLE_ROWS shows correct information for NDB tables. Previously, for partitions of NDB tables, the TABLE_ROWS column value was always 0.<br />
For NDB tables, you can also obtain this information using the ndb_desc utility.<br />
<br />
, but i wannat know whether it is a bug or what , because i implement partition on innodb table aroung 96 lac record ,abd when I see count(*) on table table row number is ok but when I run query on information_schema.partitions and want to know which partition have how many rows ,it always varry .<br />
<br />
i didnot understand what is going on ,How estimated value used in SQL optimization exceed total number of rows count in that table ?<br />
<br />
can any one tell me in details why this things happend , i am using 5.5.20 MySQL Community Server (GPL) server .<br />
<br />
i just wanna confirm wheter it is a bug or i can go ahead and implement partition on live environment.<br />
<br />
<br />
thanks in Advance.]]></description>
            <dc:creator>rajnish kumar</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 26 Jun 2012 12:31:22 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,557396,557396#msg-557396</guid>
            <title>access denied (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,557396,557396#msg-557396</link>
            <description><![CDATA[ Hi, I'm using the c api and trying to access data off my mysql server(which is remote). When I try to connect it says access denied for user. How do I fix this? Is it something wrong with my server or code?  <br />
<br />
#include &quot;stdafx.h&quot;<br />
#include &lt;iostream&gt;<br />
<br />
#include &lt;my_global.h&gt;<br />
#include &lt;mysql.h&gt;<br />
<br />
using namespace std;<br />
<br />
int main()<br />
{<br />
  MYSQL *conn;<br />
  MYSQL_RES *result;<br />
  MYSQL_ROW row;<br />
<br />
  std::cout &lt;&lt; &quot;start&quot; &lt;&lt; std::endl;<br />
<br />
  conn = mysql_init(NULL);<br />
<br />
  if(conn == NULL)<br />
  {<br />
	  std::cout &lt;&lt; &quot;failed to initialize connection&quot; &lt;&lt; std::endl;<br />
  }<br />
<br />
  mysql_real_connect(conn, &quot;216.51.232.61&quot;, &quot;username&quot;, &quot;password&quot;, &quot;a1298_userAccounts&quot;, 0, &quot;2082&quot;, 0);<br />
  cout &lt;&lt; mysql_error(conn) &lt;&lt; endl; <br />
<br />
  int query_result = mysql_query(conn, &quot;SELECT * FROM UserAccounts&quot;);<br />
  std::cout &lt;&lt; query_result &lt;&lt; std::endl;<br />
<br />
  result = mysql_store_result(conn);<br />
<br />
  while ((row = mysql_fetch_row(result)))<br />
  {<br />
	  std::cout &lt;&lt; row[2] &lt;&lt; std::endl;<br />
<br />
    if(row[2] == &quot;shadyvillian&quot;)<br />
    {<br />
        if(row[3] == &quot;a&quot;)<br />
        {<br />
			std::cout &lt;&lt; &quot;login successful&quot; &lt;&lt; std::endl;<br />
        }<br />
    }<br />
<br />
  }<br />
<br />
  mysql_free_result(result);<br />
  mysql_close(conn);<br />
<br />
}]]></description>
            <dc:creator>Aaron Kerti</dc:creator>
            <category>Embedded</category>
            <pubDate>Wed, 13 Jun 2012 00:47:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,503568,503568#msg-503568</guid>
            <title>Is there a unique like? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?58,503568,503568#msg-503568</link>
            <description><![CDATA[ I have to use LIKE in one of my columns. But the problem is that when i am using LIKE %abc% both abc, dabcd, abcde etc are selected together. But my requirement is a bit different.<br />
<br />
<br />
What i need is:<br />
<br />
If there are rows with entries abc,dsa abc, abcd etc when I select i have to get abc, and dsa abc rows.<br />
<br />
<br />
Is this possible. Someone please comeup with a soulution.]]></description>
            <dc:creator>Deepak K</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 10 Jan 2012 01:32:46 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,502667,502667#msg-502667</guid>
            <title>Performance issues with embedded? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,502667,502667#msg-502667</link>
            <description><![CDATA[ Hi, I've just started playing with the embedded version to allow me to perform out-of-band long running queries against large continuously updating databases.<br />
<br />
I have hit a performance issue though. The query I'm testing with takes 5 mins or so on the real mysql daemon (CentOS) but takes over an hour using the embedded version. Should I be expecting that sort of performance hit? It may be because I've only got the 32 bit version linked into a java library (myssql-je). Is it worth me spending the time to try and get it to compile 64 bit from source?]]></description>
            <dc:creator>Kevin Thorpe</dc:creator>
            <category>Embedded</category>
            <pubDate>Thu, 24 Nov 2011 17:03:50 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,501756,501756#msg-501756</guid>
            <title>MySQL and Microchip PIC TCP/IP Stack (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,501756,501756#msg-501756</link>
            <description><![CDATA[ Hello to all, <br />
<br />
For a recent project (at least) I need to insert data into a MySQL database using a microcontroller with Ethernet connectivity.<br />
<br />
Before starting with the microcontroller I'm trying to write an application using C# that connects to MySQL server using a TCP socket, but without using the &quot;Connector&quot; supplied by MySQL.<br />
<br />
So far I'v only scratched the surface and was abel to establish connection and receive the welcome message from the server, I've been using this <a href="http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol"  rel="nofollow">http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol</a> and the book &quot;Understanding MySQL Internals&quot;.<br />
<br />
My question, is there any C code I can port to my application? something where I could only change the way sockets are created and used (like a bottom layer) and use the upper layers?<br />
<br />
The protocol doesn't seem very hard, but it will take very time until a working version is available.<br />
<br />
Best regards, Mauro.]]></description>
            <dc:creator>Mauro Martins</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 21 Nov 2011 17:01:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,482948,482948#msg-482948</guid>
            <title>Debugging mysql_server_init() crash (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,482948,482948#msg-482948</link>
            <description><![CDATA[ The mysql_server_init() function seems to return 0 if success, 1 if error. Unfortunately, in my code when it returns 1, and I use Marshal.GetLastWin32Error() the error code is 0. I am assuming that it is not picking up on the error being generated by mysql_server_init(), but I am at a loss as to how to find out where the problem is now.<br />
<br />
Here is the relevant code block...<br />
<br />
    [DllImportAttribute(&quot;libmysqld.dll&quot;, SetLastError = true)]<br />
    static extern int mysql_server_init(int argc, string[] argv, string[] groups);<br />
<br />
    static string[] server_options = new string[2];<br />
    static string[] server_groups = new string[3];<br />
<br />
    public static bool Start()<br />
    {<br />
        server_options[0] = &quot;mysql_test&quot;; // not used?<br />
        server_options[1] = &quot;--defaults-file=./my.ini&quot;;<br />
<br />
        server_groups[0] = &quot;client&quot;;<br />
        server_groups[1] = &quot;server&quot;;<br />
        server_groups[2] = &quot;\0&quot;;<br />
<br />
        if (mysql_server_init(2, server_options, server_groups) != 0)<br />
        {<br />
            int lastError = Marshal.GetLastWin32Error();<br />
            Console.WriteLine(&quot;MySQL Library Init Failed with error code: &quot; + lastError);<br />
            return false;<br />
        }<br />
<br />
        Console.WriteLine(&quot;MySQL Library Started Successfully!&quot;);<br />
        return true;<br />
    }]]></description>
            <dc:creator>Brett Powell</dc:creator>
            <category>Embedded</category>
            <pubDate>Thu, 20 Oct 2011 00:27:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,428937,428937#msg-428937</guid>
            <title>mysqlconnector (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,428937,428937#msg-428937</link>
            <description><![CDATA[ please any body give me code for connecting mysql in embedded c (arm7 keil compiler).]]></description>
            <dc:creator>ranjeet jha</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 01 Aug 2011 10:10:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,423457,423457#msg-423457</guid>
            <title>MySQL audit + approval system tool (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,423457,423457#msg-423457</link>
            <description><![CDATA[ Hi experts,<br />
I'm looking for a specific DB admin tool.<br />
I'm not looking for complicated BPM(business process management) software,<br />
what I need is just some additional functionality embedded within admin tool. <br />
<br />
What I need is the<br />
1.Approvement system - whenever there is a request/need for new record, it needs approval from separate user before record gets updated<br />
2.Audit - logging changes made by separate users<br />
<br />
Commercial solution is also acceptable.<br />
<br />
Thank you.]]></description>
            <dc:creator>John Nash</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 14 Jun 2011 10:06:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,415030,415030#msg-415030</guid>
            <title>dump embedded database? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,415030,415030#msg-415030</link>
            <description><![CDATA[ Hi,<br />
<br />
I have an embedded database that I connect with using C++. Now, I want to move all the data from such database into a mysql server. <br />
<br />
How can dump the embedded database into a SQL text file? <br />
<br />
Thanks,<br />
Carlos.]]></description>
            <dc:creator>Carlos Quiros</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 04 Apr 2011 11:03:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,393469,393469#msg-393469</guid>
            <title>How to use Dephi connect MySQL Embedded? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,393469,393469#msg-393469</link>
            <description><![CDATA[ How to connect MySQL embedded using delphi?<br />
Any component support it?<br />
<br />
Thanks]]></description>
            <dc:creator>Masteritc SDN BHD</dc:creator>
            <category>Embedded</category>
            <pubDate>Sun, 07 Nov 2010 04:15:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,392279,392279#msg-392279</guid>
            <title>mysql_library_init() fails in Embedded server v5.5.6 (1 reply)</title>
            <link>http://forums.mysql.com/read.php?58,392279,392279#msg-392279</link>
            <description><![CDATA[ Hello,<br />
<br />
I have a program working fine with MySQL v5.1.51 embedded server.<br />
Today I tried to link it against MySQL v5.5.6 rc .<br />
<br />
The program fails during library init : mysql_library_init() returns 1, and the error file contains :<br />
<br />
InnoDB: The InnoDB memory heap is disabled<br />
InnoDB: Mutexes and rw_locks use Windows interlocked functions<br />
InnoDB: Compressed tables use zlib 1.2.3<br />
101029 15:20:56  InnoDB: highest supported file format is Barracuda.<br />
<br />
When the API is called, it lasts during 5 or 6 seconds, then fails (whereas in earlier releases it starts in less than a second).<br />
The only arguments I pass to mysql_library_init() is the option &quot;--defaults-file=mySql.ini&quot;, and my INI file contains only directives &quot;basedir&quot; and &quot;datadir&quot;.<br />
<br />
Any idea would be appreciated !<br />
<br />
Thanks,<br />
<br />
Cedric]]></description>
            <dc:creator>cedric quilliot</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 02 Nov 2010 21:43:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,392077,392077#msg-392077</guid>
            <title>Cascading auto-increment keys and C# DataSets (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,392077,392077#msg-392077</link>
            <description><![CDATA[ Hi<br />
<br />
Does anybody know why the cascading foreign key relationships to auto-incrementing primary keys in a .net DataSet behaves differently with MySQL vs. MS SQL?<br />
<br />
I'll flesh it out a bit. I created a parent table with an AI PK, and a child table with an AI PK and a foreign key field to the parent PK. Then I created a cascading relationship between the two, and a single typed DataSet with the same foreign key relationship. The DataSet's auto-increment is set to -1 (the default) to allow to SQL engine to supply the correct incremental values on update. The adapter is configured to 'Refresh the data table' after inserts. On MSSQL, I created 1 parent row and 2 child rows, added them and updated the database and the primary keys change to the next incremental values from the db, and the foreign key relationship holds.<br />
<br />
Now with MySQL, I selected the Refresh data table option, but after update the new PK values aren't retrieved, and stay at -1. The parent row is committed to the db, but the child row can't because it doesn't know what the new parent PK is. Strangely enough, when I go back to the dataset wizard the refresh option is unchecked.<br />
<br />
Is this expected behavior and does anybody know a workaround? Tried with v5.2.7 and 6.3.5, VS2008 on Win7.<br />
<br />
Thanks, Dave]]></description>
            <dc:creator>Dave Williams</dc:creator>
            <category>Embedded</category>
            <pubDate>Thu, 28 Oct 2010 09:40:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,392056,392056#msg-392056</guid>
            <title>my.cnf for mysqld (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,392056,392056#msg-392056</link>
            <description><![CDATA[ I use MXJ for a embedded server in Java app. When I start a new MysqlResource for server, how to pass path for my.cnf?]]></description>
            <dc:creator>jotremar from</dc:creator>
            <category>Embedded</category>
            <pubDate>Thu, 28 Oct 2010 07:19:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,391086,391086#msg-391086</guid>
            <title>crash with libmysqld (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,391086,391086#msg-391086</link>
            <description><![CDATA[ Hello,<br />
<br />
<br />
I'm trying to run the following program with libmysqld (5.0.91), and it is crashing on the mysql_library_end(); call with<br />
<br />
<br />
Program terminated with signal 11, Segmentation fault.<br />
#0  0x000000000058fbcd in innobase_release_stat_resources (trx=0xcdcdcdcdcdcdcdcd) at third_party/mysql50/sql/ha_innodb.cc:394<br />
394             if (trx-&gt;has_search_latch) {<br />
(gdb) bt<br />
#0  0x000000000058fbcd in innobase_release_stat_resources (trx=0xcdcdcdcdcdcdcdcd) at third_party/mysql50/sql/ha_innodb.cc:394<br />
#1  0x0000000000584ebc in innobase_release_temporary_latches (thd=0x7f5e7f850418) at third_party/mysql50/sql/ha_innodb.cc:425<br />
#2  0x0000000000587244 in ha_innobase::close (this=0x7f5e84159b60) at third_party/mysql50/sql/ha_innodb.cc:2335<br />
#3  0x0000000000713b33 in closefrm (table=0x7f5e8415da18) at third_party/mysql50/sql/table.cc:996<br />
#4  0x000000000060f446 in intern_close_table (table=0x7f5e8415da18) at third_party/mysql50/sql/sql_base.cc:261<br />
#5  0x000000000060f465 in free_cache_entry (table=0x7f5e8415da18) at third_party/mysql50/sql/sql_base.cc:280<br />
#6  0x0000000000744357 in hash_delete (hash=0xe11020, record=0x7f5e8415da18 &quot;\340\341\025\204^\177&quot;)<br />
    at third_party/mysql50/mysys/hash.c:539<br />
#7  0x000000000060f58e in close_cached_tables (thd=0x0, if_wait_for_refresh=false, tables=0x0) at third_party/mysql50/sql/sql_base.cc:334<br />
#8  0x000000000060f009 in table_cache_free () at third_party/mysql50/sql/sql_base.cc:117<br />
#9  0x0000000000573fa9 in clean_up (print_message=false) at third_party/mysql50/libmysqld/../sql/mysqld.cc:1185<br />
#10 0x000000000057986a in end_embedded_server () at third_party/mysql50/libmysqld/lib_sql.cc:561<br />
#11 0x000000000056ab96 in mysql_server_end () at third_party/mysql50/libmysqld/libmysql.c:202<br />
#12 0x000000000056aa3f in main (argc=6, argv=0x7fffc184a9b8) at storage/speckle/server/mysql/mysql_vanilla.cc:41<br />
<br />
<br />
<br />
<br />
<br />
static MYSQL* Connect(const char* database) {<br />
  MYSQL* db = mysql_init(NULL);<br />
  assert(db != NULL);<br />
  mysql_options(db, MYSQL_OPT_USE_EMBEDDED_CONNECTION, NULL);<br />
  assert(db == mysql_real_connect(db, NULL, &quot;mysql_test&quot;, NULL, database,<br />
                                  0, NULL, 0));<br />
  mysql_autocommit(db, true);<br />
  return db;<br />
}<br />
<br />
int main(int argc, char* argv[]) {<br />
  assert(0 == mysql_library_init(argc, argv, 0));<br />
  assert(1 == mysql_thread_safe());<br />
  assert(0 == mysql_thread_init());<br />
<br />
  {<br />
    // Create the database.<br />
    MYSQL* db = Connect(NULL);<br />
    assert(0 == mysql_query(db, &quot;create database if not exists d&quot;));<br />
    mysql_close(db);<br />
  }<br />
<br />
  // Open a connection to the new database.<br />
  MYSQL* db = Connect(&quot;d&quot;);<br />
<br />
  // Create the table.<br />
  assert(0 == mysql_query(<br />
      db, &quot;create table if not exists t (i integer) engine=innodb&quot;));<br />
  assert(0 == mysql_query(db, &quot;insert into t values (1);&quot;));<br />
  mysql_close(db);<br />
  mysql_thread_end();<br />
  mysql_library_end();<br />
}<br />
<br />
<br />
<br />
<br />
Any idea what's going on?<br />
<br />
Thanks,<br />
<br />
jm.]]></description>
            <dc:creator>Jean-Michel Leon</dc:creator>
            <category>Embedded</category>
            <pubDate>Thu, 21 Oct 2010 21:55:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,390666,390666#msg-390666</guid>
            <title>password authentication in embedded MySQL (1 reply)</title>
            <link>http://forums.mysql.com/read.php?58,390666,390666#msg-390666</link>
            <description><![CDATA[ Is password authentication feature in embedded MySQL (libmysqld.dll) disabled by default? That means, if I want to enable the feature then I have to build the DLL from the source, right?]]></description>
            <dc:creator>Agus Setiono</dc:creator>
            <category>Embedded</category>
            <pubDate>Wed, 20 Oct 2010 10:33:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,387652,387652#msg-387652</guid>
            <title>Connecting MySQL to Virtools (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,387652,387652#msg-387652</link>
            <description><![CDATA[ Hi there<br />
<br />
I´m trying to do an app using Virtools to show data from a MySQL table but i´ve searched the Virtools forums and Google but there´s no information about this so i´m trying to find out if anyone understands using these two programs.<br />
<br />
Virtools uses building blocks to build applications for the web, gaming or virtual reality but i don´t know what building block script i should make.<br />
<br />
Thanks very much for your help.<br />
Fabio]]></description>
            <dc:creator>Fabio m</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 27 Sep 2010 20:25:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,378098,378098#msg-378098</guid>
            <title>iMy 2.0 for iPhone with SSH support (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,378098,378098#msg-378098</link>
            <description><![CDATA[ Spanware is pleased to announce iMy 2.0, the full MySQL client for the iPhone.<br />
<br />
iMy was the first MySQL client for the iPhone back in 2008, and now it is the first to add SSH tunneling for secure connections. <br />
<br />
iMy lets you not only download query results directly from your iOS device, but upload large queries from your desktop to avoid typing.<br />
<br />
iMy also has a new drag-tap query building interface that incorporates nearly every MySQL keyword.<br />
<br />
iMy also lets you manage and terminate runaway processes simply and easily.<br />
<br />
iMy is $5.99 USD and is available from the iTunes store here:<br />
<a href="http://itunes.apple.com/us/app/imy/id290798289?mt=8"  rel="nofollow">http://itunes.apple.com/us/app/imy/id290798289?mt=8</a><br />
<br />
More information on iMy can be found here:<br />
<a href="http://www.spanware.com/iphonedb/iMy/iMy.html"  rel="nofollow">http://www.spanware.com/iphonedb/iMy/iMy.html</a>]]></description>
            <dc:creator>David Koretzky</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 27 Jul 2010 20:03:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,376127,376127#msg-376127</guid>
            <title>Embedded server in MySQL 5.5.4-m3 select failing on information_schema.tables? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,376127,376127#msg-376127</link>
            <description><![CDATA[ I'm trying this embedded program to do a select against INFORMATION_SCHEMA.TABLES.  It fails on next_field and next_mysql_field never being initialized and pointing to garbage.  <br />
<br />
It looks like this change may have added the code that's not working right: <a href="http://lists.mysql.com/commits/85677"  rel="nofollow">http://lists.mysql.com/commits/85677</a><br />
<br />
I'm not sure what to initialize those fields to for the binary protocol, the text protocol sublcass looks right. Any help would be appreciated.<br />
<br />
Thanks!<br />
<br />
Rob<br />
<br />
<br />
Here's a sample app demonstrating the problem on ubunty lucid.<br />
#include &lt;mysql.h&gt;<br />
#include &lt;cstdio&gt;<br />
#include &lt;cstdlib&gt;<br />
#include &lt;iostream&gt;<br />
<br />
static char *server_args[] = {<br />
  &quot;this_program&quot;,       /* this string is not used */<br />
  &quot;--datadir=.&quot;,<br />
  &quot;--key_buffer_size=32M&quot;<br />
};<br />
<br />
#define CHECK(x) { if (!(x)) { std::cerr &lt;&lt; #x &lt;&lt; std::endl; exit(1); }}<br />
#define CHECK_STMT(stmt, x) { if (!(x)) { std::cerr &lt;&lt; #x &lt;&lt; &quot; &quot; &lt;&lt; \<br />
  mysql_stmt_error(stmt) &lt;&lt; std::endl; exit(1); } else { std::cout &lt;&lt; &quot;after &quot; \<br />
  &lt;&lt; #x &lt;&lt; std::endl; } }<br />
<br />
int main(void) {<br />
  printf(&quot;Hello World\n\n&quot;);<br />
  if (mysql_library_init(sizeof(server_args) / sizeof(char *),<br />
                         server_args, NULL)) {<br />
    std::cerr &lt;&lt; &quot;Could not initialize MySQL library!&quot;;<br />
    return 1;<br />
  }<br />
<br />
  MYSQL* mysql = mysql_init(NULL);<br />
  if (!mysql_real_connect(mysql, NULL, NULL, NULL, NULL, 0, NULL, 0)) {<br />
    std::cerr &lt;&lt; &quot;mysql_real_connect&quot;;<br />
    return 1;<br />
  }<br />
<br />
  MYSQL_STMT* stmt = mysql_stmt_init(mysql);<br />
  CHECK(stmt != NULL);<br />
  std::string sql = &quot;select * from information_schema.tables&quot;;<br />
  CHECK_STMT(stmt, mysql_stmt_prepare(stmt, sql.c_str(), sql.size()) == 0);<br />
  CHECK_STMT(stmt, mysql_stmt_execute(stmt)==0);<br />
<br />
  std::cout &lt;&lt; &quot;after mysql_stmt_execute&quot; &lt;&lt; std::endl;<br />
<br />
  mysql_close(mysql);<br />
  mysql_library_end();<br />
  return 0;<br />
}]]></description>
            <dc:creator>Rob Clevenger</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 13 Jul 2010 23:16:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,374954,374954#msg-374954</guid>
            <title>MySQL Embedded GUI? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,374954,374954#msg-374954</link>
            <description><![CDATA[ Is it possible through MySQL Administrator or Workbench5.2 (or some other tool) to open/query/alter an embedded database?<br />
<br />
And if yes how!?]]></description>
            <dc:creator>Ioannis Anifantakis</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 06 Jul 2010 08:48:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,374953,374953#msg-374953</guid>
            <title>MySQL Embedded install Upgrades (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,374953,374953#msg-374953</link>
            <description><![CDATA[ MySQL Embedded is ofcourse included in a single file called &quot;libmysqld.dll&quot;.<br />
However two folders must exist.<br />
&quot;data&quot; and &quot;shared&quot;<br />
<br />
When some user first runs the application, 3 files are automatically created inside the &quot;data&quot; subfolder.<br />
<br />
ib_logfile0<br />
ib_logfile1<br />
ibdata1<br />
<br />
Now the question is the following:<br />
<br />
If I simply overwrite the &quot;libmysqld.dll&quot; file of the new embedded server version, do I have replaced the mysql embedded server version or need I do something more?<br />
<br />
I have embedded version 5.1.41 and I change it to 5.1.48 by simply replacing THIS AND ONLY THIS FILE?  If I replace the other 3 ofcourse the schema gets corrupted.  If I don't replace the other 3 files everything runs smoothly and version is updated.  But is it updated? or is it just me?]]></description>
            <dc:creator>Ioannis Anifantakis</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 06 Jul 2010 08:40:07 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,373376,373376#msg-373376</guid>
            <title>'Access violation reading' when changing db (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,373376,373376#msg-373376</link>
            <description><![CDATA[ Hi,<br />
<br />
 I have an &quot;access violation reading&quot; error when i try to change database. <br />
 The default code works fine, I can change tables, fields but when i change db it spits out<br />
 &quot;..0xC0000005: Access violation reading location 0x0000000c.&quot;<br />
 <br />
 . I tried copying database &quot;mysql&quot; to &quot;myssql&quot; just to check things out.., but still couldn't select from it (myssql) .. <br />
&lt;code&gt;<br />
#include &quot;stdafx.h&quot;<br />
<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;stdarg.h&gt;<br />
#include &lt;windows.h&gt;<br />
#include &lt;mysql.h&gt;<br />
<br />
	MYSQL *mysql;<br />
	MYSQL_RES *results;<br />
	MYSQL_ROW record;<br />
<br />
	static char *server_options[] = { &quot;mysql-test&quot;, &quot;--datadir=D:/softdev/testprojects/002_themysqlserv/data&quot;,<br />
	&quot;--language=C:/Server/MySQL/share/english&quot;,  NULL };<br />
	<br />
	int num_elements = sizeof(server_options)/ sizeof(char *) - 1;<br />
		<br />
	static char *server_groups[] = { &quot;libmysqld_server&quot;, NULL };<br />
<br />
int main(int argc, char* argv[])<br />
 {	 int retval;<br />
     retval = mysql_library_init(num_elements, server_options, (char **) server_groups);<br />
     mysql = mysql_init(NULL);<br />
     mysql_options(mysql, MYSQL_OPT_USE_EMBEDDED_CONNECTION, NULL);<br />
     mysql_real_connect(mysql, NULL, &quot;root&quot;, NULL, &quot;mysql&quot;, 0, NULL, 0);<br />
//   mysql_real_connect(mysql, NULL, &quot;root&quot;, NULL, &quot;myssql&quot;, 0, NULL, 0);<br />
     mysql_query(mysql, &quot;SELECT name FROM help_topic&quot;);<br />
     results = mysql_store_result(mysql);<br />
	<br />
/*error*/    while((record = mysql_fetch_row(results))) {<br />
                  printf(&quot;%s – %s \n&quot;, record[0], record[1]);<br />
               }<br />
<br />
     mysql_free_result(results);<br />
     mysql_close(mysql);<br />
     system(&quot;PAUSE&quot;);<br />
     return 0;<br />
}<br />
&lt;/code&gt;<br />
<br />
 I followed this guide <a href="http://lstigile.wordpress.com/2009/05/19/using-libmysqld-with-microsoft-visual-c-2008-express/"  rel="nofollow">http://lstigile.wordpress.com/2009/05/19/using-libmysqld-with-microsoft-visual-c-2008-express/</a><br />
<br />
Im using VS2010..<br />
<br />
I'm probably missing something.. Point me in the right direction :)<br />
<br />
Thanks!]]></description>
            <dc:creator>Crabby nolastname</dc:creator>
            <category>Embedded</category>
            <pubDate>Thu, 24 Jun 2010 23:37:59 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,372241,372241#msg-372241</guid>
            <title>Setting lower_case_table_names in C++ embedded MySQL (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,372241,372241#msg-372241</link>
            <description><![CDATA[ Hi everyone,<br />
<br />
I am currently writing a C++ application with the embedded API that reads and executes SQL statements out of a .sql file after some processing.  I'm working on Linux, but the SQL scripts are written by an appliciation originally developed for Windows, and as a result the table names in the file are case-inconsistent.  I know that the usual solution is to set lower_case_table_names=1, but I don't know how to go about this with the embedded server.<br />
<br />
I'm having the embedded server read options out of the /etc/my.cnf config file, where I've got &quot;lower_case_table_names=1&quot; under both the [mysqld] and [mysql] groups, but this isn't working, and I can't pass the server command-line arguments either since it's being started inside an executable.  Is there some option in one of the initialization functions that takes command-line-like arguments?<br />
<br />
Passing &quot;SET lower_case_table_names=1&quot; also doesn't work.<br />
<br />
I know that the real solution to this is to lowercase the entire script, but unfortunately it includes some filenames that also need to be in the correct case.  How do I do this?<br />
<br />
Thanks!]]></description>
            <dc:creator>Dan Stuart</dc:creator>
            <category>Embedded</category>
            <pubDate>Wed, 16 Jun 2010 20:02:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,370488,370488#msg-370488</guid>
            <title>'System.Byte' to type 'System.Char[]'. (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,370488,370488#msg-370488</link>
            <description><![CDATA[ I am experiencing some issues moving data from SQL 2008 to MySQL 5.0.77 using SSIS 2008.  The error I receive is <br />
<br />
&quot;Error: 0xC020844B at Data Flow Task, ADO NET Destination [1566]: An exception has occurred during data insertion, the message returned from the provider is: Unable to cast object of type 'System.Byte' to type 'System.Char[]'.&quot;<br />
<br />
I do not have any 'BYTE' data types in my source, nor BIT types that are stored in together in a byte.  I do not know why it is trying to convert from BYTE to CHAR.  I am using an ADO.NET destinition using the 5.1 ODBC driver.  My Source has some MSSQL data types like REAL and MONEY.  I've used DECIMAL(19,4) and DOUBLE in MySQL destination.<br />
<br />
Has anyone come across this error before and have any suggestions as to where I should look for a solution?]]></description>
            <dc:creator>Michael Peterson</dc:creator>
            <category>Embedded</category>
            <pubDate>Fri, 04 Jun 2010 14:24:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,368898,368898#msg-368898</guid>
            <title>mysql command with embedded server? (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,368898,368898#msg-368898</link>
            <description><![CDATA[ I've been playing around a bit with the embedded server.  I've created a small C/C++ application that starts up and does simply database access.<br />
<br />
However, what I would really like is a mysql command that is a self-contained database.  Has anyone done something like this?  For example, I'd like to be able to do the following:<br />
<br />
$ mysql [options] &lt; my_tables.sql<br />
<br />
and have it work as a standalone command, without the MySQL database running.]]></description>
            <dc:creator>Kevin Regan</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 24 May 2010 18:52:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,368817,368817#msg-368817</guid>
            <title>MYSQL Access Violation Writing Error (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,368817,368817#msg-368817</link>
            <description><![CDATA[ I am in very difficult situation while connecting with MYSQL dabatase , Trying to find some solution but can't get around . hopefully some has some idea to tell me what is going on and how to correct it. <br />
<br />
<br />
   I am using VC++ IDE  , My Main program creats Two Threads . each thread performs a function and write the result in the database, <br />
<br />
I have written class which interacts with MYSQL database , so i create two objects of mydatabase class and give it to each thread to access the database...<br />
 <br />
         The Problem is after some time ( 3 - 5 minutes) its end up with an Error saying <br />
         ---- Access Violation Writing Error. ----- <br />
         and there is no futher message which can  help me to find out what the problem is ... <br />
          I started to investigate and find out the problem could possibly be in the MYSQL *conn ...<br />
<br />
       currently class is like this<br />
<br />
<br />
class myslq{<br />
  private :<br />
              MYSQL *conn<br />
  <br />
   public :<br />
           void initMyDatabase();<br />
           void insertRecord (char *)<br />
}<br />
<br />
           so in the function is initialize the conn and make connection .and keep the connection  open until the program terminates  ( Main Program is in infinite loop so not suppose to be ending )<br />
<br />
                     what i did is changed the MYSQL *conn from being Global to Local so now i initiates the MYSQL conn structure inside the insertRecord function and close it before leaving the function. ... now doing this does stop the error message of &quot;Access Violation Error&quot; but starting to have different issue that most of the connection going on TIME_WAIT state and some of them shown ESTABLISHED . and after two days of running the program continuously MYSQL server said TOO MANY CONNECTIONS.  and i simply can't access the database until i kill some connections.<br />
                         Does any one has any idea what could possible be wrong in this situation. reply will deeply be appreciated.]]></description>
            <dc:creator>shahzaib khan</dc:creator>
            <category>Embedded</category>
            <pubDate>Mon, 24 May 2010 11:23:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?58,362953,362953#msg-362953</guid>
            <title>How to move data files from embedded to standalone server (no replies)</title>
            <link>http://forums.mysql.com/read.php?58,362953,362953#msg-362953</link>
            <description><![CDATA[ Hello.<br />
I'm using an application that I think is using embedded Mysql (it uses the libmysql.dll file) and I would like to copy/move the data files to a mysql standalone server. This would allow me add and run some important queries that doesn't exist at the moment.<br />
<br />
The data files are stored in a folder called Data inside the application folder.<br />
THe data files are:<br />
<br />
\data\ACTICS.CDX<br />
\data\actics.dat<br />
\data\actics.fpt<br />
\data\ddv1.cdx<br />
\data\ddv1.dat<br />
<br />
Is there any to attach these files or a copy of these files to my standalone mysql server?<br />
<br />
Thanks for your help and attention.<br />
Jorge C.]]></description>
            <dc:creator>aaaaaa aaaaaa</dc:creator>
            <category>Embedded</category>
            <pubDate>Tue, 13 Apr 2010 11:52:59 +0000</pubDate>
        </item>
    </channel>
</rss>
