Skip to content

larryfans/connect-between-Unity-and-MySQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

20221201 Unity远程连接AWS EC2的MySQL

  1. 下载合适的MySQL Connector/NET 问题:Unity 2019不兼容MySQL Connector/NET的最新版本。 原因:最新的MySQL Connector/NET已经不兼容Unity2019使用的.net v4版本。 解决:使用低版本的Connector/NET,我使用的是6.3.9. https://downloads.mysql.com/archives/c-net/ image

  2. 找到V4目录下mysql.data.dll,添加入unity项目中 image

  3. 在unity scene中创建一个empty object,将C#脚本添加,后运行game。

image

效果

应该可以做增删改查(目前只做增和查)

image

image

About

connect between Unity and MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages