Comments (7)
This is fixed in 3.0.0? I'm still seeing this issue.....
from fluent-mysql-driver.
@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
The underlying issue is raised at vapor/mysql-kit#172
from fluent-mysql-driver.
Ok thanks @0xTim 🙂
from fluent-mysql-driver.
vapor/mysql-kit#172 has been closed. This will be fixed as a part of the 3.0.0 tag.
from fluent-mysql-driver.
This error is still persisting for me when starting a new project with Vapor 3.1.10
and attempting to configure FluentMySQL
.
vapor/mysql-kit#172 seems like the related issue but I'm unsure if it was resolved. Additional clarification would be most appreciated.
from fluent-mysql-driver.
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.
from fluent-mysql-driver.
I also had this problem, but with some research on the net I managed to solve
Solution:
I'm using Xcode Version 11.3.1 and mySql: mysql 8.0.19 and Vapor 3.1.10
let mysqlConfig = MySQLDatabaseConfig( hostname: "127.0.0.1", port: 3306, username: "root", password: "****", database: "chatter", transport: MySQLTransportConfig.unverifiedTLS )
let mysql = MySQLDatabase(config: mysqlConfig)
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) }
Hope this helps.
from fluent-mysql-driver.
Related Issues (20)
- References and Foreign Key Constraints not being applied HOT 2
- `.string` migrations results in a 256 length varchar HOT 1
- Mysql LAST_INSERT_ID HOT 2
- Error related to SwiftPackage HOT 1
- It can't be decoded if value is null HOT 1
- QueryBuilder.all() is 30 times slower than java code HOT 13
- Not able to store special characters and emojis properly HOT 1
- Implementation for deleteReference seems to be missing HOT 1
- MariaDB cannot hydrate and/or dehydrate bool values HOT 1
- How to query raw SQL with local variables?
- Convenience APIs for configuring character set for database, tables, and columns
- Trying to connect to a database without password HOT 1
- error: extra argument 'requestTimeout' in call requestTimeout: self.connectionPoolTimeout, HOT 18
- Make LastInsertIDInitializable public HOT 2
- Investigate flaky CI
- Make `MySQLConfiguration` non-constant HOT 6
- Could not convert MySQL data to Date HOT 1
- FluentMySQLConfiguration's memberwise initializer takes a minute to typecheck HOT 1
- Connection refused (errno: 61) when trying to connect to a remote Database HOT 2
- Could not convert MySQL data to Date on time field HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-mysql-driver.