Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Mysql连接的连接字符串_C#_Mysql_Asp.net_.net_Vb.net - Fatal编程技术网

C# 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

我对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 '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'