vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi all. I am working on a wrapper ( a dll made in C using the C-api) around the MySQL-api in order to be able to use the embedded server from C# (I hate doing GUI:s in C). So far everything seems to work fine, I can init the server and it will make me a small database in my current directory. First I tried using 5.0.19 API, but that version doesnt seem to have the embedded server included, so I downloaded the 4.1.18 version, and ran the setup and choosed only the Embedded stuff + include+libs. I then linked my DLL against the libmysqld.lib and keep the libmysqld.dll in my path during runtime and it works, BUT, the mysql-init-server wants to open a errmsg.sys file which it wants to be located at "c:\mysql\share\english". How can I avoid this ? Is there some option to tell the embedded server routines that I want this file someplace else ? Thanx in advance. /ZW |
| |||
| ZoombyWoof <zoombywoofremove@thishotmail.com> wrote: > I am working on a wrapper ( a dll made in C using the C-api) around the > MySQL-api in order to be able to use the embedded server from C# > ... the mysql-init-server wants to > open a errmsg.sys file which it wants to be located at > "c:\mysql\share\english". > > How can I avoid this ? Is there some option to tell the embedded server > routines that I want this file someplace else ? RTFM: http://dev.mysql.com/doc/refman/4.1/...d-options.html The messages file is looked up in <basedir>\share\english. So you may want to set the --basedir option when calling mysql_server_init() XL -- Axel Schwenke, Senior Software Developer, MySQL AB Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/ MySQL User Forums: http://forums.mysql.com/ |
| |||
| Axel Schwenke wrote: > ZoombyWoof <zoombywoofremove@thishotmail.com> wrote: > >> I am working on a wrapper ( a dll made in C using the C-api) around the >> MySQL-api in order to be able to use the embedded server from C# > >> ... the mysql-init-server wants to >> open a errmsg.sys file which it wants to be located at >> "c:\mysql\share\english". >> >> How can I avoid this ? Is there some option to tell the embedded server >> routines that I want this file someplace else ? > > RTFM: http://dev.mysql.com/doc/refman/4.1/...d-options.html > > The messages file is looked up in <basedir>\share\english. So you may > want to set the --basedir option when calling mysql_server_init() > > > XL > -- > Axel Schwenke, Senior Software Developer, MySQL AB > > Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/ > MySQL User Forums: http://forums.mysql.com/ Thanx :-) I'll try that. /ZW |
| ||||
| Axel Schwenke wrote: > ZoombyWoof <zoombywoofremove@thishotmail.com> wrote: > >> I am working on a wrapper ( a dll made in C using the C-api) around the >> MySQL-api in order to be able to use the embedded server from C# > >> ... the mysql-init-server wants to >> open a errmsg.sys file which it wants to be located at >> "c:\mysql\share\english". >> >> How can I avoid this ? Is there some option to tell the embedded server >> routines that I want this file someplace else ? > > RTFM: http://dev.mysql.com/doc/refman/4.1/...d-options.html > > The messages file is looked up in <basedir>\share\english. So you may > want to set the --basedir option when calling mysql_server_init() > > > XL > -- > Axel Schwenke, Senior Software Developer, MySQL AB > > Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/ > MySQL User Forums: http://forums.mysql.com/ I found the solution to this. I set --language=<some dir>. Then I can have the errmsg.sys file wherever I want. /ZW |