1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-23 22:05:15 +02:00
Files
OpenIntegrations/docs/en/examples/MySQL/CreateConnection.txt
Vitaly the Alpaca (bot) 5742dc08d6 Main build (Jenkins)
2025-04-02 14:56:42 +03:00

22 lines
656 B
Plaintext
Vendored

Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
Base = "";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
Result = OPI_MySQL.CreateConnection(ConnectionString);
OPI_MySQL.CloseConnection(Result);
// With TLS
Address = "api.athenaeum.digital";
Port = "3307";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
TLSSettings = OPI_MySQL.GetTlsSettings(False);
Result = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
OPI_MySQL.CloseConnection(Result);