2025-10-21 11:36:43 +03:00
|
|
|
Address = "127.0.0.1";
|
2025-04-03 21:52:31 +03:00
|
|
|
Login = "bayselonarrend";
|
2025-10-21 11:36:43 +03:00
|
|
|
Password = "12we...";
|
2025-04-03 21:52:31 +03:00
|
|
|
Base = "";
|
|
|
|
|
|
2025-09-01 14:51:24 +03:00
|
|
|
TLS = True;
|
|
|
|
|
Port = 3306;
|
|
|
|
|
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
|
|
|
|
|
|
|
|
|
|
If TLS Then
|
|
|
|
|
TLSSettings = OPI_MySQL.GetTLSSettings(True);
|
|
|
|
|
Else
|
|
|
|
|
TLSSettings = Undefined;
|
|
|
|
|
EndIf;
|
2025-04-03 21:52:31 +03:00
|
|
|
|
|
|
|
|
Base = "testbase1";
|
|
|
|
|
|
|
|
|
|
// When using the connection string, a new connection is initialised,
|
|
|
|
|
// which will be closed after the function is executed.
|
|
|
|
|
// If several operations are performed, it is desirable to use one connection,
|
|
|
|
|
// previously created by the CreateConnection function()
|
2025-09-01 14:51:24 +03:00
|
|
|
Result = OPI_MySQL.CreateDatabase(Base, ConnectionString, TLSSettings);
|