@@ -11,11 +11,10 @@ func Example() {
11
11
// Connect MySQL at 127.0.0.1:3306, with user root, an empty password and database test
12
12
conn , err := client .Connect ("127.0.0.1:3306" , "root" , "" , "test" )
13
13
// 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)})
16
15
// 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)})
19
18
if err != nil {
20
19
msg := fmt .Sprintf (`
21
20
This example needs a MySQL listening on 127.0.0.1:3006 with user "root" and
0 commit comments