You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@TofPlay it's a bug in Vapor's MySQL due to a breaking change in MySQL 10.something. For now you can do
docker stop mysql
docker rm mysql
docker run --name mysql -e MYSQL_USER=vapor -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=vapor -p 3306:3306 -d mysql/mysql-server:5.7
We're also facing this using MySQL 5.7. We connect to MySQL via sidecar proxy which handles authentication for us, so we can't easily just add a password.
OBS: this setting can differentiate. e.g: database, password(change in mysql)
and hostname: "127.0.0.1",
port: 3306,
username: "root",
in the class MySQLDatabaseConfig you can see if these are the information public static func root(database: String) -> MySQLDatabaseConfig { return .init(hostname: "127.0.0.1", port: 3306, username: "root", database: database) }
Hi,
I just change my database to MySQL and when I run my app Xcode stop and display this error:
My package.swit:
MySQL launched with Docker:
The text was updated successfully, but these errors were encountered: