首先是Plugins文件夹下要
然后写两个类来调用mysql,前提是一定要已经弄好电脑调用mysql的连接,如果不会,请百度如何下载mysql之类的
然后其中最主要是SqlAccess类和NewBehaviourScript
```csharp
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
string Error = null;
void Start()
{
try
{
SqlAccess sql = new SqlAccess();
sql.CreateTableAutoID("momo", new string[] {
"id", "name", "qq", "email", "blog" }, new string[] {
"int", "text", "text", "text", "text" });
//sql.CreateTable("momo",new string[]{"name","qq","email","blog"}, new string[]{"text","text","text","text"});
sql