Git Product home page Git Product logo

Comments (7)

ampedNinja avatar ampedNinja commented on May 20, 2024 10

This is fixed in 3.0.0? I'm still seeing this issue.....

from fluent-mysql-driver.

0xTim avatar 0xTim commented on May 20, 2024 2

@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.

TofPlay avatar TofPlay commented on May 20, 2024

Ok thanks @0xTim 🙂

from fluent-mysql-driver.

tanner0101 avatar tanner0101 commented on May 20, 2024

vapor/mysql-kit#172 has been closed. This will be fixed as a part of the 3.0.0 tag.

from fluent-mysql-driver.

captainbarbosa avatar captainbarbosa commented on May 20, 2024

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.

smathieu avatar smathieu commented on May 20, 2024

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.

GuimaraesGabrielG avatar GuimaraesGabrielG commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.