Comments (3)
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.
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.
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)
- operating system is not supported HOT 3
- docker-desktop cannot build it HOT 4
- start server failed HOT 2
- Dockerfile build: unknown flag: link HOT 16
- /root/.wasmedge/bin/wasmedgec: not found HOT 5
- ERROR [server build 3/5] RUN cargo build --target wasm32-wasi --release HOT 2
- bug: DNS not resolving service name to IP address HOT 8
- Compile error in MacOS Big Sur 11.6.8 HOT 10
- Compile error when `crossbeam-utils v0.8.13` in MacOS Big Sur 12.6.1 HOT 9
- Sample application doesn't work as expected. HOT 7
- windows10下wasmedge执行,端口绑定不了 HOT 2
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 microservice-rust-mysql.