Vb how to connect the mysql database, we give an example
CodePudding user response:
The difference lies in the connection string, depending on your connection way,
A.O DBC I.L ocal database: "Driver={mySQL}; Server=mySrvName; Option=16834; The Database=mydatabase;" II. Remote database: "Driver={mySQL}; Server=data.domain.com; Port=3306; Option=131072; Stmt=; The Database=my - Database; Uid=username; The Pwd=";"
B.O LE DB, OleDbConnection "The Provider=MySQLProv; Data Source=mydb; User Id=UserName; Password=asdasd;"
C. ySqlConnection (.net) Appropriate precautions InfoDesigns. DbProvider: "Data Source=server; The Database=mydb; User ID=username; Password=PWD; The Command Logging=false " Note: this method is used only for the eInfoDesigns dbProvider connection,