Страница 1 из 1

Особенности ZConnection.Parameters в Zeosdbo

СообщениеДобавлено: 21.03.2013 23:11:03
Ism
У 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

То есть можно напрямую издеваться с параметрами подключения.

Re: Особенности ZConnection.Parameters в Zeosdbo

СообщениеДобавлено: 04.01.2014 10:37:06
alezy
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

Re: Особенности ZConnection.Parameters в Zeosdbo

СообщениеДобавлено: 18.03.2014 12:01:23
Lourencohen
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

Re: Особенности ZConnection.Parameters в Zeosdbo

СообщениеДобавлено: 18.03.2014 12:48:23
Vadim
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.