300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > mysql数据库 web asp.net 使用基于asp.net web的应用程序的mysql数据库

mysql数据库 web asp.net 使用基于asp.net web的应用程序的mysql数据库

时间:2024-06-30 16:21:02

相关推荐

mysql数据库 web asp.net 使用基于asp.net web的应用程序的mysql数据库

i am getting an error while creating table at run time in c# code,it says,

Format of the initialization string does not conform to specification starting at index 22.

解决方案You can create DB script and execute using .NET code as below:

Process scriptProc = new Process();

scriptProc.StartInfo.FileName = @"cscript";

scriptProc.StartInfo.Arguments ="//B //Nologo c:\scripts\test.vbs";

scriptProc.Start();

scriptProc.WaitForExit();

scriptProc.Close();

connect to mysql

Create your database

CREATE DATABASE IF NOT EXISTS databasename

now create ur table

CREATE TABLE IF NOT EXISTS `tblmasters` (

`uID` int(11) NOT NULL default ''0'',

`cData` varchar(75) NOT NULL default '''',

`cDescription` varchar(250) NOT NULL default '' '',

`defaultV` varchar(5) NOT NULL default ''Y'',

`cAbbrev` varchar(25) NOT NULL default '''',

`cType` varchar(75) NOT NULL default '''')

It sounds to me like you have a malformed connection string. Check your connection string for the provider you are using /mysql

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。