UniDAC连接Embedded MySQL server
Simple question about MySQL embedded application.
Simple question about MySQL embedded application.
I am wondering how I can use the embedded MySQL server in a Delphi application via UniDAC? Do you have a demo for this ? Better give me a step by step guide if possible.
Thanks very much.
- tanghz
- Posts: 16
- Joined: Wed 17 Jan 2007 02:40
You can look at the MyDACDemo->TechnologySpecific->Embedded demo. This demo demonstrates working with Embedded MySQL Server. If you don‘t have MyDAC you can download MyDAC Trial version. Also you can read the Using Embedded Server topic in MyDAC Reference Manual.
- AndreyZ
- Devart Team
- Posts: 2506
- Joined: Fri 03 Sep 2010 07:16
You can connect to the Embedded MySQL server with UniDAC in the following way:
- Code: Select all
UniConnection.ProviderName := ‘MySQL‘;
UniConnection.Database := DatabaseName;
UniConnection.SpecificOptions.Values[‘Embedded‘] := ‘True‘;
UniConnection.SpecificOptions.Values[‘EmbeddedParams‘] := ‘--basedir=.‘#13#10‘--datadir=data‘;
The --basedir parameter sets the base path for the Embedded MySQL server. All paths are usually used relatively to the base path. The --datadir parameter sets the path to the data directory.
- AndreyZ
- Devart Team
- Posts: 2506
- Joined: Fri 03 Sep 2010 07:16
Re: Simple question about MySQL embedded application.
using firemonkey
mysql 5.5
unidac 4.5.9
"MySQL client library couldn‘t be loaded. Please place libmysqld.dll file to system folder (included to PATH) or to the folder with executable unit of main program."
- vallemanden
- Posts: 17
- Joined: Sat 11 Jun 2011 07:44
Re: Simple question about MySQL embedded application.
http://www.cnblogs.com/wxb-km/archive/2012/11/21/2781719.html
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。