Questions tagged [fluent-mysql]

4 questions
4
votes
1 answer

MySQL & Vapor 3: unrecognized basic packet, full auth not supported

I want to connect a MySQL database on my machine with a Vapor 3 app. My current configure.swift file looks as follows: try services.register(FluentMySQLProvider()) ... let mysqlConfig = MySQLDatabaseConfig( username: "dev", password: "", …
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
2
votes
2 answers

Change a VARCHAR field via migration in Vapor Fluent-MySQL

I'm using Vapor 3 and FluentMySQL for my new project and want to change maximum length of a field (varchar(N)) via migration. How can I do this? I have a Model named Word in my project and one of its fields is sourceIdentifier that is String and…
Omid Golparvar
  • 468
  • 5
  • 12
1
vote
1 answer

FluentMySQL migration fails when building with docker-compose but not when building from Xcode

I'm getting the following crash when using docker-compose with Vapor & FluentMySQL. api_1 | [ INFO ] Migrating 'mysql' database (/app/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationConfig.swift:69) api_1 | Fatal error: Error raised…
Christian Fox
  • 390
  • 2
  • 15
1
vote
1 answer

vapor 3 fluent-mysql join query

How to use fluent-mysql to join query and limit query in Vapor 3? eg: SELECT a.*, b.* ON a.id = b.aid LIMIT 0,10 I am not find such examples and documents.
Wenxin Jin
  • 13
  • 3