// Go MySQL Driver - A MySQL-Driver for Go's database/sql package
//
// Copyright 2013 The Go-MySQL-Driver Authors. All rights reserved.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.
packagemysql
import(
"errors"
"fmt"
"log"
"os"
)
// Various errors the driver might return. Can change between driver versions.
var(
ErrInvalidConn=errors.New("invalid connection")
ErrMalformPkt=errors.New("malformed packet")
ErrNoTLS=errors.New("TLS requested but server does not support TLS")
ErrCleartextPassword=errors.New("this user requires clear text authentication. If you still want to use it, please add 'allowCleartextPasswords=1' to your DSN")
ErrNativePassword=errors.New("this user requires mysql native password authentication.")
ErrOldPassword=errors.New("this user requires old password authentication. If you still want to use it, please add 'allowOldPasswords=1' to your DSN. See also https://github.com/go-sql-driver/mysql/wiki/old_passwords")