问题标签 [mysql.data]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 安装 Visual Studio 2012 后无法添加 Mysql.Data 作为参考
我的机器上安装了 VS 2010 Professional。我尝试下载 VS 2012 Express 来检查一下。我对此进行了探索并尝试创建一个示例网站。但是当我尝试添加 Mysql.Data 时,我无法添加它。当我尝试在 Assembly>Extension 中添加引用时,Mysql.Data 在那里我添加了它,但我发现它没有添加到引用中,我不能使用它。
这是我尝试过的一些解决方案:
- 删除 C:\Users\Name\AppData\Roaming\Microsoft\VisualStudio 中的包
- 试图卸载并重新安装 mysql.data 库
你能帮我解决这个问题吗?多谢!
build - Visual Build Pro - 使用 MySQL 数据源构建 Analysis Services Cube
我正在尝试使用 Visual Build Pro v7 为我创建的 Analysis Services 多维数据集创建构建脚本。使用以下构建脚本步骤将多维数据集部署到我的本地计算机没有问题...
除了替换 .dwproj.user 文件中的目标服务器、备份和删除可能以前版本的多维数据集的任何痕迹之外,我的构建脚本只包含以下步骤:
多维数据集的数据源是 MySQL 数据库。部署到远程服务器时,构建在第 3 步失败。
我已经在服务器上下载并安装了 MySql Connector/Net,但是当我运行构建脚本时出现以下错误:
当我检查 .asdatabase 和 .xmla 时,我可以看到我的 ConnectionString 中的用户 ID 和密码详细信息已被删除。我不确定这是为什么或发生在哪里?
有谁知道发生了什么?可能是权限问题还是与mysql连接器有关?还是第三种选择?
asp.net - Register entityFramework with MySql.Data 6.7.2.0 connector
I have tried to configure my web project to use MySQL pre release of .net connectors, version 6.7.2.0. However, i keep getting this message, even if I try my best configure my project to use the 6.7.2.0 version of the connectors.
As it is now, I keep getting this errormessage:
No Entity Framework provider found for 'MySql.Data.MySqlClient' ADO.NET provider. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
I have tried different ways to configure my Web.config file, and here is my current settings:
I have installed EF6 alfa3 from NuGet. Currently my connector has been installed manually from this downloaded file, I tried to install it from NuGet repository, but with the exact same result.
c# - Downloading a large table of data from a MySQL Database to text file in C#
I have a MySQL database "DB" in which there's a table "TABLE" of a single field and it contains about 8 Million rows. I am trying to download that table into a text file as follows:
Upon running it starts downloading the data and outputing it to the text file but after only a minute or two it gives:
What Might I change or do differently for it to work? Thanks for any suggestions and answers :)
[EDIT]: I added command.CommandTimeout = 240;
and tested three times, every time it downloaded for a couple minutes (about 40MB of data each time) before giving:
And these are the last few lines of the debug output:
[EDIT2]: I added MySqlDataReader result = command.ExecuteReader(System.Data.CommandBehavior.SingleResult);
in an effort to remedy the above error and now I am getting:
After some light google-ing I figure it is GoDaddy that is limiting the query execution time. Therefore a working solution is to have try/catch with a counter to keep track of how many records were retrieved before the connection was closed and to re-open new connections with the counter as starting point to LIMIT until the table size is exhausted.
Thanks for all the help!
c# - 使用 MySqlDataReader 时遇到致命错误
我的 C# WinForms 应用程序出现以下错误:
读取数据时遇到致命错误
我正在使用mysql.data V4.0.30319
.
这是我的代码:
我在这一行收到错误:
到目前为止我发现的唯一一件事是关闭阅读器和连接的问题,但据我所知,所有设置都正确......
所以大家知道是怎么回事吗???
c# - MySQL : 6.6.5.0 版本的 MySql.Data 无法加载
我使用 Entity FrameWork 5.0 和 MySql 连接器 6.7.4 。我有一个简单的 MVC Razor 4 应用程序。当我开始我的应用程序时,会出现这样的错误:
无法加载文件或程序集 'MySql.Data, Version=6.6.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' 或其依赖项之一。找到的程序集的清单定义与程序集引用不匹配。(来自 HRESULT 的异常:0x80131040)
我尝试从 NuGet 卸载并加载我的 MySqlData dll,但它没有用。我应该怎么办?
c# - MySQL 数据库连接
我收到了一组我不知道如何调和的错误。我正在使用 EntityFramework5,因为这是 MySql.Data 和 MySql.Data.Entity 的最新支持的 EF 版本。引发错误的是 App.Config。这是我一直在尝试但没有解决方案的两种替代方法。
在此示例中,我收到错误: {"Unrecognized element 'providers'. (C:\\Users\\recursor\\Documents\\Visual Studio 2012\\Projects\\CS3280\\Final Project\\IR\\ConsoleApplication2\\bin\\Debug\\ConsoleApplication2.vshost.exe.Config line 16)"}
据我了解,EF5 不支持提供程序,因此我尝试使用它。
在此示例中,我收到错误: {"Required attribute 'invariant' not found. (C:\\Users\\recursor\\Documents\\Visual Studio 2012\\Projects\\CS3280\\Final Project\\IR\\ConsoleApplication2\\bin\\Debug\\ConsoleApplication2.vshost.exe.Config line 34)"}
我尝试将不变式放入并收到警告不允许使用“invariantName”属性(也不是不变式)。
如果我输入不变量,则会出现以下错误: {"Required attribute 'invariant' not found. (C:\\Users\\recursor\\Documents\\Visual Studio 2012\\Projects\\CS3280\\Final Project\\IR\\ConsoleApplication2\\bin\\Debug\\ConsoleApplication2.vshost.exe.Config line 34)"}
所以我似乎有一种情况,我不能使用一个,但另一个不支持不变类型。我不知道如何解决这个问题。我已经能够连接到数据库并且连接字符串工作。我只是使用实体框架搜索或修改任何数据。
我尝试添加这个,但它也没有帮助。
编辑1:
第 16 行是<providers>
.
第 34 行是<DbProviderFactories>
c# - MySQL 实体注入
mysql.data.entity 是否内置了针对注入攻击的保护。我觉得它应该是因为它不传递文字,而是传递对象,所以它们不应该接触 SQL,但我不确定。
c# - 通过C#将创建过程命令上传到mysql时忽略@symbol
我在 C# 中创建了一个程序来将 MySql 数据库结构和过程复制到新创建的数据库中。然后将新数据上传到它。无法上传包含“@”符号的程序的问题,例如:
我用来检索程序的代码是:
以下将新的创建过程语句上传到新数据库:
和错误:
我将如何让 MySql.Data 忽略 @ 符号?
c# - ServiceStack Ormlite - 加入子类
我正在使用最新的 ServiceStack Ormlite (v4.0.23),它为加入多个列提供了新的加入支持。
我的实体都继承自 BaseEntity:
假设我有 2 个实体,UserEntity 和 AnswerEntity,它们继承自这个基类。在 v4.0.19 中使用 JoinSqlBuilder 时,我可以使用以下方式加入这些:
更新后,我收到错误:
MySql.Data.MySqlClient.MySqlException :MySql.Data.MySqlClient.MySqlStream.ReadPacket() 的 MySql.Data.MySqlClient.NativeDriver.GetResult 的“where 子句”中的未知列“BaseEntity.IsDeleted”(Int32 和受影响的行,Int64 和插入的 ID)。 ..
使用新的加入支持,我得到同样的错误: