У ZConnection.Parameters есть интересная фишка, там можно прописать любые опции клиентской библиотеки , которые она поддерживает
Например
ZConnection.Parameters.Add('codepage=utf8')
ZConnection.Parameters.Add('MYSQL_OPT_RECONNECT=1')
ZConnection.Parameters.Add('MYSQL_SET_CHARSET_NAME=UTF8')
Опции отсюда http://dev.mysql.com/doc/refman/5.1/en/ ... tions.html
То есть можно напрямую издеваться с параметрами подключения.
Особенности ZConnection.Parameters в Zeosdbo
Модератор: Модераторы
AppThread - stream file created ExtP_Toolkit. Actually, then, for what, and puts the whole package ExtP_Toolkit. Updated every time you compile, if added a new shape, which creates some inconvenience. Just need to bring to mind CurrentThread function
-
Lourencohen
- незнакомец
- Сообщения: 1
- Зарегистрирован: 18.03.2014 11:56:11
I am new to this forum and have no idea about the ZConnection parameters. As I a m a beginner here, I am totally confused with the codes you are given here. Can you just share the basic info about ZConnection and how this works? Thanks in advance.
Thanks
Lourene
Thanks
Lourene
Lourencohen
The following properties are usually sufficient ZConnection:
- Protocol - used here is chosen database type;
- Database - the name of the database (database server) or a file path to it (eg, SQLite);
- Hostname - the name (IP) of the server where the database resides;
- User - the user name;
- Password - the user password.
"Parameters" property is used to specify a specific to a particular database server option, without which you can not properly connect to an server.
The following properties are usually sufficient ZConnection:
- Protocol - used here is chosen database type;
- Database - the name of the database (database server) or a file path to it (eg, SQLite);
- Hostname - the name (IP) of the server where the database resides;
- User - the user name;
- Password - the user password.
"Parameters" property is used to specify a specific to a particular database server option, without which you can not properly connect to an server.
