I have installed last C:\Program Files\MySQL\MySQL Connector Net 6.8.3
but it is absent in Change Data Source of VS2013 so I cannot use it with EntityFramework.
It appears under Change Data Source of VS2012 perfectly...
What do I am missing?
I know that I can use always VS2012 to create EF to MySQL... But I would like see MySQL Data Provider in Change Data Source of VS2013
Any clue?
I did some investigation and I installed this
https://cdn.mysql.com/Downloads/MySQLInstaller/mysql-visualstudio-plugin-1.1.1.msi
based on
http://forums.mysql.com/read.php?174,601041,601041#msg-601041
And it is appearing well!!! Hahahahaa!
Related
This errors occurred only when stored procedure used otherwise in inline query works. Mysql version is 8.0.21 and framework used - Visual studio 2012 ultimate.
enter image description here
This errors occurred only when stored procedure used otherwise inline query works. MySQL version is 8.0.21 and framework used - Visual studio 2012 ultimate.
Please help me. Thanks in advance
May be it is mysql version dll issue.
remove current mysql dll references and add old one mysql version dll references.
i am not sure it is correct or not. but this works for me.
I am using the ADO.NET data provider MySql.Data.MySqlClient to access a MySQL database from .NET Core and most things work, but whenever I try to access a stored procedure I see the following exception message:
MySql.Data.MySqlClient.MySqlException : Table 'mysql.proc' doesn't exist
All of the articles I can find recommend running mysql_upgrade to fix the system tables, but this finds no problems.
And in fact the database does not contain a mysql.proc table - but it is not supposed to since it is MySQL 8.0!
I've installed the latest version of Connector/NET (8.0.15) using MySQL Installer.
What am I doing wrong?
The version of Connector/NET installed is... irrelevant!
This is .NET Core, and ADO.NET data providers for .NET Core are obtained via NuGet - so make sure that your .NET Core project is loading the latest version of the MySql.Data NuGet package.
Older versions of the MySql.Data NuGet package (pre v.8) do give the above error when trying to access stored procedures on version 8+ MySQL databases.
I stumbled upon this post trying to find a solution to this problem with my Azure-hosted MySQL database, but none of the solutions were applicable. I wanted to share what worked for me (from rfontona's response here):
Azure Database for MySQL – Single Server service, we have a gateway which runs v5.6 which may be cause this error. You can change the port in the connection string to 3309 (default would be 3306), which will connect you to v8.0 client in the gateway. More details here - Supported versions - Azure Database for MySQL | Microsoft Docs
When setting up the MySqlConnectionStringBuilder, I used the following:
new MySqlConnectionStringBuilder {
...
Port = 3309
}
I assume that a similar approach would work within a connection string as well.
If you still face the issue after getting the latest version of MySql.Data package(s), make sure to add CheckParameters=false
Check out the GetSchema function in ADO.Net in particular the "Procedures" and "Procedure Parameters" collections.
I know this post is old, but in case this is question is still relevant...
I was able to get around this issue by changing the command type to text instead of a stored procedure and on the command text I used the call command:
sql = "call yourstoreproc()";
cmd = new Mysql.Data.MySqlClient.MySqlCommand(sql, connection);
cmd.CommandType = System.Data.CommandType.Text;
cmd.ExecuteNonQuery();
As #MikeBeaton explained this is irrelevant version issue.
I had faced the same issue when deployed an application which was using mySql.data , and mySql.web dependencies as reference with version 6.0.. , then on deploying a machine that has connector with version 8.0 so it caused this error
CONNECTOR VERSION ON HOSTING MACHINE
BIN FOLDER ASSEMBLY VERSION
SOLUTION
Update your web.config and packages.config files with version from old to new
EXAMPLE
here the old version was 6.9.0 so I updated all with 8.0.21.0
<dependentAssembly>
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.21.0" newVersion="8.0.21.0" />
</dependentAssembly>
likewise find these all dependencies inside this and package file and replace all will solve your problem.
I have Visual Studio 2017 Community installed, and MySQL Community 8.0.12 on a same PC. It is also equipped with MySQL for Visual Studio 2.0.5 and MySQL Connector/NET 8.0.12.
Now, using the DataSource Wizard in Visual Studio. I was able to test the connection to my server and select which Tables that I wanted to add to the DataSet.
However when I click Finish, a following errors showed up:
"Some updating commands could not be generated automatically. The database returned the following error: Unexpected Error"
This is followed by another error log:
"Could not retrieve schema information for table or view [tablename]"
for every Table I wanted to add.
I already looked up to some information regarding the said errors, but so far they are talking about older version of Visual Studio and MySQL. Any help will be appreciated. Thank you.
So after some fiddling and looking into MySQL official website, I downgraded my Connector/NET to version 6.9.8, and downgraded the MySQL for Visual Studio as well to version 1.2.7
Now the DataSource is able to get table definitions and so on.
Still a minor error shows up whenever the "FINISH" button in DataSource wizard is pressed, that shows up "Failed to add relation(s) Specified cast is not valid".
This error however doesn't prevent the DataSource to be created and used. I'm still not sure what caused this error though.
I have both SQL Server 2008 R2 and 2012 both installed on same server. My SSIS package is developed by BI studio 2008 R2. I have created package manifest file for the installation.
As both SQL Server 2008 R2 and 2012 installed, when I run command:
H:\>where dtsinstall.exe
it returns these 3 details:
C:\Program Files\Microsoft SQL Server\100\DTS\Binn\dtsinstall.exe
C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\dtsinstall.exe
C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\dtsinstall.exe
So, I forced particular (that are under \100\) dtsinstall.exe for the installation. Like below:
"C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\dtsinstall.exe" "E:\UAT\Final.SSISDeploymentManifest"
and also
"C:\Program Files\Microsoft SQL Server\100\DTS\Binn\dtsinstall.exe" "E:\UAT\Final.SSISDeploymentManifest"
Update
From wizard, i'm giving the things like this:
Sever name - local, User SQL Server Authentication, package path : /folder_name/ under MSDB
select installation folder : E\Folder1\Folder2
yes i have folder id in SQL which is a big hexadecimal number; somehow I want to see the complete path (i.e. E\Folder1\Folder2) by executing query. Is there any query to see and confirm this?
Here , after installation the new packages should be in : E\Folder1\Folder2 and the problem is new packages are not at this location.Its showing me old packages with old installed date.
In both cases, Installation is showing success from the wizard; however, the location where I'm installing is still showing me old dates - means packages are not getting modified. I checked the installation log as well and there are no error. Can any one please tell me if I'm missing something or do I need to check any particular things before installation? Why the actually its not getting installed and dates are also not getting modified? Anyone faced similar problem before?
Is it necessary to uninstall SQL Server 2012 and try? OR it could be a permission issue as may be I have limited permission on UAT server?
Update:
I executed this query:
use msdb;
select * from dbo.sysssispackages
this gave me package details, when I checked the build version of pkg it gave me my new installed build version. However, when I looked into the folder which i selected during the installation show me the old version number, which is quite strange.
Here my question is, is there any way to know , in which folder its actually installing?
I executed this query as well:
select * FROM sysssispackagefolders
This gives me folderid but not the path; I want to know the exact path?
Is it that on server its installing but not reflecting in folder somehow?
Thanks in advance.
So, while trying to connect to Pentaho in Pentaho Report Designer, I am getting an error which says:
Communication failure during handshake. Is there a server running on the host host_name?
using class org.gjt.mm.mysql.Driver
I have now included the jar file mentioned in the first answer and the connection says OK. But, when I preview or use a query using that connection, again I get the same error.
I am absolutely new to Pentaho. I got a few errors before which I could resolve. But, I have been stuck on this one for 2 days now. Cannot find anything regarding this.
May be Mysql connector is not there i think.
=> Before creating jdbc connection. Go to these location Eg:- C:\report-designer-3.9.1\lib and then check mysql-connector-java-5.1.26.jar file is their or not. If it's not their goto these (http://dev.mysql.com/downloads/connector/j/) location and download jar file and copy that file and paste it in C:\report-designer-3.9.1\lib location.
=> Restart Pehtaho Report Designer again and check it now.
=> May be you have lower version of mysql jar file remove old mysql jar file and paste higher version of mysql jar.
I think your problem will be solved.
Thank you..