Git Product home page Git Product logo

Comments (3)

juntao avatar juntao commented on August 11, 2024 1

Thanks! I remember seeing this problem as well. The mysql-common crate does seem problematic for certain versions of MySQL (esp newer version).

For production use cases in the cloud, we are connecting from WasmEdge to a MySQL instance (eg AWS RDS) with TLS. You can see an example here:

https://github.com/WasmEdge/wasmedge-db-examples/tree/main/mysql_async

from microservice-rust-mysql.

kmboyle avatar kmboyle commented on August 11, 2024

I was not able to get the Microservices template up and running via an Ubuntu VM on macOS darwin aarch64. I ran into a couple issues with docker compose (my buildkit platform shows linux/arm64). I also tried to manually build and run the Microservices in the VM, but having trouble connecting to the mysql server. Would love to see some docs on how, if possible, to get this running on a Linux VM on macOS. Keep up the great work, love what you all are doing.
Thanks!

from microservice-rust-mysql.

kmboyle avatar kmboyle commented on August 11, 2024

Long story, but I finally got it to work (building and running it locally without Docker). For anyone who encounters this error: mask too long when connecting to mysql, this may help. I found that this library mysql_common was throwing the error mask too long as it was attempting to handle SHA-1 encoding. In mysql I found that when I created a new user, the default plugin mechanism was caching_sha2_password. I found the plugin mechanism with select user, authentication_string, plugin, host from mysql.user;

I ended up modifying the users plugin mechanism to mysql_native_password, and then I was able to run curl http://localhost:8080/init successfully.

I am not entirely clear on the security impacts of doing this, so review documentation carefully.

from microservice-rust-mysql.

Related Issues (12)

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.