C# Mysql连接的连接字符串
我对mysql数据库有以下设置: 我已将连接字符串设置为:C# Mysql连接的连接字符串,c#,mysql,asp.net,.net,vb.net,C#,Mysql,Asp.net,.net,Vb.net,我对mysql数据库有以下设置: 我已将连接字符串设置为: server=localhost;database=Ink_ProductionJob;Port=3306;username=root;password='' 代码: 但给了我一个错误: Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Unknown database
server=localhost;database=Ink_ProductionJob;Port=3306;username=root;password=''
代码:
但给了我一个错误:
Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Unknown database 'ink_productionjob'
请帮我看看这有什么问题
第一次建立MySql和.NET连接
请帮忙
未知数据库错误通常意味着您指定的数据库不存在。您确定数据库名不是您需要的表是ink\U productionjob吗?您没有在连接字符串中提到要连接到该数据库的密码
Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Unknown database 'ink_productionjob'