@@ -11,11 +11,10 @@ func Example() {
1111 // Connect MySQL at 127.0.0.1:3306, with user root, an empty password and database test
1212 conn , err := client .Connect ("127.0.0.1:3306" , "root" , "" , "test" )
1313 // Or to use SSL/TLS connection if MySQL server supports TLS
14- //conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.UseSSL(true)})
15-
14+ // conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.UseSSL(true)})
1615 // Or to set your own client-side certificates for identity verification for security
17- //tlsConfig := NewClientTLSConfig(caPem, certPem, keyPem, false, "your-server-name")
18- //conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.SetTLSConfig(tlsConfig)})
16+ // tlsConfig := NewClientTLSConfig(caPem, certPem, keyPem, false, "your-server-name")
17+ // conn, err := client.Connect("127.0.0.1:3306", "root", "", "test", func(c *Conn) {c.SetTLSConfig(tlsConfig)})
1918 if err != nil {
2019 msg := fmt .Sprintf (`
2120This example needs a MySQL listening on 127.0.0.1:3006 with user "root" and
0 commit comments