Hi,
is any way to programtycaly change DB params by MyServerControl?
Changing params
-
AndreyZ
Re: Changing params
Hello,
Please specify the exact database parameters that you want to change.
Please specify the exact database parameters that you want to change.
Re: Changing params
There are global parameters like server_id or max_allowed_packet. When I execute included in help statement:
I get an error: #HY000SESSION variable 'max_allowed_packet' is read only. Use SET GLOBAL to assign a value.
SQL command using TMyScript "set global ...." works but I want to use TMyServerControl because it looks easier.
Code: Select all
MyServerControl1.Variables['max_allowed_packet'] := '1234567890';
SQL command using TMyScript "set global ...." works but I want to use TMyServerControl because it looks easier.
-
AndreyZ
Re: Changing params
To avoid the problem, you should specify the scope of a variable in the variable name. Here is a code example:
Code: Select all
MyServerControl1.Variables['global max_allowed_packet'] := '1234567890';Re: Changing params
It works, tkank you very much 