| Bug #8421 | path to my.ini in embedded mysqld | ||
|---|---|---|---|
| Submitted: | 10 Feb 2005 18:45 | Modified: | 11 Feb 2005 0:53 |
| Reporter: | radek vyhlidal | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Embedded Library ( libmysqld ) | Severity: | S2 (Serious) |
| Version: | 4.1.9 | OS: | Windows (win xp) |
| Assigned to: | CPU Architecture: | Any | |
[11 Feb 2005 0:53]
MySQL Verification Team
Using the sample from the Manual and modifying the queries I was able for to use --defaults-file=xxxx without any problems. C:\temp>bug8421.exe >> 4.1.10-embedded-debug >> datadir d:\mytest\data\ C:\temp>type d:\mytest\my.ini [embedded] basedir=d:/mytest datadir=d:/mytest/data just edit correctly argc=xx argv[1]= "--defaults-file=xxxxx" before mysql_server_init(argc, argv, (char **)server_groups);.

Description: Can“t set path to 'my.ini' file with option '--defaults-file=e:\my.ini' in embedded MySQL server with mysql_server_init(). mysqld always searchs my.ini in c:\ and c:\windows first why is current directory omitted?? How to repeat: const argv1: array[0..3] of PChar = ('--defaults-file=e:/my.ini',... ... mysql_server_init(4, @argv1,@argv2); p:=mysql_init(nil); ...