2025-06-29 14:35:33 +03:00
|
|
|
Address = "127.0.0.1";
|
2025-03-27 20:05:59 +03:00
|
|
|
Login = "bayselonarrend";
|
2025-06-29 14:35:33 +03:00
|
|
|
Password = "12we...";
|
2025-03-27 20:05:59 +03:00
|
|
|
Base = "";
|
|
|
|
|
|
|
|
|
|
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
|
|
|
|
|
Result = OPI_MySQL.CreateConnection(ConnectionString);
|
|
|
|
|
|
|
|
|
|
OPI_MySQL.CloseConnection(Result);
|
2025-04-02 14:56:42 +03:00
|
|
|
|
|
|
|
|
// With TLS
|
|
|
|
|
|
2025-06-29 14:35:33 +03:00
|
|
|
Address = "127.0.0.1";
|
2025-04-02 14:56:42 +03:00
|
|
|
Port = "3307";
|
|
|
|
|
|
|
|
|
|
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
|
2025-06-27 14:27:03 +03:00
|
|
|
TLSSettings = OPI_MySQL.GetTlsSettings(True);
|
2025-04-02 14:56:42 +03:00
|
|
|
|
|
|
|
|
Result = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
|
|
|
|
|
|
|
|
|
|
OPI_MySQL.CloseConnection(Result);
|