Web.Config错误-访问GoDaddy上的MySQL数据库

Web.Config错误-访问GoDaddy上的MySQL数据库,mysql,web-config,Mysql,Web Config,正在尝试连接到我在自己的域下创建的远程(GoDaddy)MySQL数据库。我使用的是c#,而不是php web.config中的IP地址由Plesk中的GoDaddy提供 接收到以下错误: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right s

正在尝试连接到我在自己的域下创建的远程(GoDaddy)MySQL数据库。我使用的是c#,而不是php

web.config中的IP地址由Plesk中的GoDaddy提供

接收到以下错误:

MySql.Data.MySqlClient.MySqlException: You have an error in your SQL
syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near '[UserProfile]([UserId] int NOT NULL
PRIMARY KEY IDENTITY, [Email] nvarchar(56) N' at line 1
这是我的web.config(和关联的连接字符串):


我能够在MySQL Workbench中使用相同的参数,并且可以毫无问题地访问数据库

谢谢你的帮助。谢谢

试试这个

<add name="connstring" connectionString="server=localhost;User Id=root;Persist Security Info=True;database=marctest;password=PASSWORD" providerName="MySql.Data.MySqlClient"/>

<add name="connstring" connectionString="server=localhost;User Id=root;Persist Security Info=True;database=marctest;password=PASSWORD" providerName="MySql.Data.MySqlClient"/>