Hello, I want to connect sql in a script, how to do it?
I use this
I use this
Core.MySql.Libraries.MySql sqlLibrary = Interface.Oxide.GetLibrary<Core.MySql.Libraries.MySql>();
Connection sqlConnection = sqlLibrary.OpenDb("localhost", 3306, "umod", "username", "password", this);Are you missing `Oxide.Core.Database' or `Oxide.Ext.MySql' or `CompanionServer' or `Network' or `Steamworks.Data' or `Oxide.Ext.SQLite' using directive?
I add this using Oxide.Ext.MySql