海家伙,
这个连接字符串有什么问题?
我用下面的连接字符串
<add name="connectionString" connectionString="server=localhost;user id=root; password=; database=lms; pooling=false;" providerName="MySql.Data.MySqlClient"/>
它给我的错误There is no 'lms'@'%' registered
。
我的数据库服务器为localhost,并且用户帐户没有密码..
user id = root。你确定用户标识之间允许有空格吗,不是用户标识吗? – Sarfraz 2009-12-31 08:56:35
雅我相信有空间。 – bala3569 2009-12-31 08:57:34
你用什么驱动程序连接到MySQL - OLE或ODBC? 'user id ='是OLE语法; 'uid ='或'USER ='是ODBC:http://www.webcheatsheet.com/ASP/mysql_connection_strings.php – 2009-12-31 08:58:39