[MDEV-4497] Client character set ignored by the mysql client utility Created: 2013-05-07 Updated: 2013-05-08 Resolved: 2013-05-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.3.12 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Vasilis Lourdas | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ms Windows XP (sp3) |
||
| Description |
|
I use MariaDB 5.3.12 at work (Windows XP sp3) and the my.ini file contains:
When invoking the mysql client utility, the character settings is ignored and I get:
Of course, if I invoke the mysql utility with the --default-character-set=utf8 option, it works fine, but it's a bit annoying to always type it. |
| Comments |
| Comment by Elena Stepanova [ 2013-05-07 ] |
|
Hi, I think your client does not read the config file at all. Otherwise it wouldn't even start, because character-set-server is a server-only option, unknown for the client. |
| Comment by Elena Stepanova [ 2013-05-07 ] |
|
To find out where the client looks for configuration files, you can issue mysql --help command and search for Next line will contain the list of locations. |
| Comment by Vasilis Lourdas [ 2013-05-07 ] |
|
Hi Elena, You are absolutely right! I copied my.ini from c:\webserver\MariaDB\data\my.ini and after deleting a few character-set-server options not recognized by the mysql utility, it worked! I expected the mysql client utility would read the ini from the data directory (which is where the mariadb service expects to find my.ini to start the database server), but I guess it does not. Damn, this is why I like MariaDB much more than MySQL. I had my issue resolved in a couple of minutes. Thank you guys, you rock! Feel free to close this bug. Best regards, |
| Comment by Elena Stepanova [ 2013-05-07 ] |
|
Glad it worked for you, closing as suggested. In regard to the datadir – I don't think the client is even theoretically capable of finding a config file there, on the simple reason that it's unaware of the datadir at all – it's a server's property, and it's configurable, so cannot be hard-coded in the client or calculated relatively to the basedir. |
| Comment by Vladislav Vaintroub [ 2013-05-08 ] |
|
"don't think the client is even theoretically capable of finding a config file there" There is a little known fact , or perhaps unknown to anyone except MSI installer author |
| Comment by Elena Stepanova [ 2013-05-08 ] |
|
Indeed, good to know |