go-sql-driver / mysql

Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package
https://pkg.go.dev/github.com/go-sql-driver/mysql
Mozilla Public License 2.0
14.46k stars 2.3k forks source link

v1.6.0 get error #1566

Closed PterX closed 6 months ago

PterX commented 6 months ago

Issue description

time="2024-03-17T13:20:49Z" level=fatal msg="Error running migration" error="Dirty database version 5. Fix and force version."

Example code

If possible, please enter some example code here to reproduce the issue.

Error log

time="2024-03-17T13:20:49Z" level=fatal msg="Error running migration" error="Dirty database version 5. Fix and force version."

Configuration

Driver version (or git SHA):

Go version: run go version in your console

Server version: E.g. MySQL 5.6, MariaDB 10.0.20

Server OS: E.g. Debian 8.1 (Jessie), Windows 10