MySQL for Visual studio 1.2.7 setup wizard ended prematurely - mysql

Created a proj from VS2013 installed mysql plugin 1.1.1, can update. But after I transferred to VS2017, it wont update Model from Database on edmx file. So I am installing mysql plugin 1.2.7 but i get this error..

I found this solution from the MySQL Windows Experience Team
I've identified that the installation is rolling back whenever it tries to execute the command "devenv /updateconfiguration /log", which is the last step of the installation. This command signals Visual Studio to reload the extensions, including the MySQL for Visual Studio plugin, however for some strange reason (probably due to one of the recent VS updates) execution of said command is failing.
The current workaround is to remove the execution of the failing command from the MSI and after installation of the plugin proceed to execute the command manually. Steps to achieve that are as follows:
Download and install Orca. Orca is a light Windows Installer Development tool that allows to edit MSIs.
In Windows explorer, right click the MySQL for Visual Studio MSI file and select "Edit with Orca".
Click the "InstallExecuteSequence" item located under the "Tables" section on the left side of the window.
If you're trying to install in VS Community right click the "SetVS15Setup_Custom" action and select "Drop Row" option. Do the same for "VS15Setup_Custom". Similar elements exist for VS Professional/Enterprise.
Save changes and retry installation of MySQL for Visual Studio.
Once installation completes, open the "Developer Command Prompt for VS 2017". It can be found in VS 2017's start menu folder.
In the command prompt execute the command "devenv /updateconfiguration /log" and wait for it to complete.
I hope that the steps provided are of help.
Credit goes to:
Marco Barnabò (for reporting the bug) &
Jose Maria Ramirez (for solving the issue)
The solution was obtained from the mySQL forums:
https://forums.mysql.com/read.php?174,660549,661819#msg-661819

Related

Mysql 8.0.29 installation failed

The installation failed at this point
I have already installed Microsoft Visual Studio c++ 2019.
I already uninstalled and delete all the hidden folders.
I read that for someone the solution was to turn off Windows firewall, I already tried it.
I also checked multiple videos of how to install MySQL, but they have the same steps, just a different voice.
Any suggestions?
Check some log information.
When you uninstall mysql, you should delete the relevant information about mysql in the registry.
3.install .net 4.5.2+

MySQL workbench failing to download

I have a Mac and use parallels to access Windows 11. I am trying to download MySQL, and everything successfully downloaded except for the Workbench. It fails to install every time with the error, "The processor is not adequate for running MySQL Workbench 8.0 CE."
I have tried googling and searching through forums and videos, and cannot find this exact error, and have tried using solutions from similar workbench issues.
I have tried uninstalling the program, and reinstalling, as well as restarting Windows and the computer as a whole. I have downloaded Visual Code 2022, 2019, and 2017 in hopes that one of these would work, but none did. I also added the development C++ add on to Visual Code like some people suggested, and that did not help. I also have downloaded the 2017 Visual C++ Redistributable for Visual Studio 2017 (version 15.9) and tried to "repair" it. Still did not work, still get the same error. Also, I have already downloaded NET framework 4.5, so that is not the problem either.
I don't know where else to look, or what other resources to try and was wondering if anyone had any ideas or knows to how to solve this issue. Thank you for any help!
Windows on ARM emulation isn't good enough to trick the MySQL Workbench installer into thinking that it's running on an Intel CPU, so the installation fails.
Fortunately, this is fixable with some degree of effort - you have to patch the MSI file. There's likely other ways to do the patch, but here's how I did it using Orca:
Install the Visual Studio 2022 ARM preview and include the tools needed for C++ development. This will get the Windows SDK installed.
Run the Orca installer that's bundled with the Windows SDK (it will be put somewhere like "C:\Program Files (x86)\Windows Kits\10\bin\WINDOWS SDK VERSION\x86\Orca-x86_en-us.msi")
Download the MySQL Workbench .msi installer from https://dev.mysql.com/downloads/workbench/. Do not use the MySQL Installer that handles everything - you want the dedicated installer that handles just Workbench.
Right click the downloaded .msi, choose "Show More Options" and then "Edit with Orca"
Open the "LaunchCondition" table in the left hand list.
In the right hand side, there will be a row saying "Intel >= 5". Right click it and select "Drop Row" to remove the CPU check.
File > Save As and save your modified .MSI file.
You can now run the modified .MSI file and it'll install Workbench just fine on your Windows 11 on ARM environment. It works great in Parallels on my M2 MacBook Air!
your Mac silicon is M1?
M1 not support, intel is ok

Failed to open a connection to the database; MySQL.Data.MySQLClient; Cannot create a design window for the selected object

I am using
Visual studio 2017, version 15.9.11
MySQL for visual studio 1.2.9
MySQL-8.0.18-win64
mySQL-connector-net-8.0.18-noinstall
If I try to add a connection to a project via Data Sources > Database > Dataset, and set the connection with the right server name, user name, and password, and then select one table, select options and click Next I get the following error
"Failed to open a connection to the database Cannot obtain
provider factory for data provider named 'MySql.Data.MySQLClient'.Check the connection and try again."
Also, when I connect to a local MySQL database using Tools > Connect to database... and I create the connection, which successfully seems to be done in the server explorer, and then in the same server explorer panel, if I go Data Connections > localhost > tables > double-click on the table, this is the error I get:
Cannot create a design window for the selected object.
How can I solve this?
The problem
As I said in my question I had mysql-connector-net-8.0.18-noinstall extracted. I tend to extract binaries instead of installing things. Don't really have a good reason for this behavior.
After checking Vignesh solution and before uninstalling anything, I decided to give a try to the mysql-installer-community-8.0.18.0.msi installer, since I had the mysql-connector-net-8.0.18-noinstall extracted in one folder and then I added a reference in the project, which was not working. Perhaps there was a way to use this folder (binaries, global references, etc) properly, but I couldn't find one. Maybe I was the problem.
The solution
However, after installing via the msi file, everything is working now. So if you ran into this problem, having similar versions than the ones I'm using and had the no-install version extracted, you can safely close Visual Studio, and install the same version via the msi installer, this worked for me! Worst case scenario, you can uninstall it via the same msi file, and try Vignesh's or other's solution.
This error will be fixed by uninstalling Connector current version and installing Connector 6.9.8
Download Connector 6.9.8
Visual Studio 2015: Visual Studio 2015 Community + DotNet Connector 6.9.8 + MySQL for Visual Studio 2.0.3 is working combination.
Visual Studio 2017: Visual Studio 2017 Community + DotNet Connector 6.9.8 + MySQL for Visual Studio 1.2.7 is working.

MySQL Server installation issue

I am trying to install the Oracle MySQL Server and Workbench on a server computer running Windows 2008. For some reason I just can't install it - can someone give there opinion on the problem - I am uploading pictures of the installation process.
I downloaded the 32 15.8M version
Agreed
Here is where the first problem appears. The only two options I can actually choose are Default and Custom . i chose Custom because the only thing I can install is MySQL for Excel..
Custom
...
...
And at the end there is nothing installed
After choosing the setup type and product features, Do you get a chance to see the attached screen? with all components downloaded? installation image
If you could see that and click on execute the product must be installed.
-Don't forget to check if
*your account has Admin privileges to install.
*The machine in which you are trying to install has access to internet via installers
-If you still face the problem i would suggest you to download the file of size 230MB and try installation with that.

Visual Studio Windows Installer with MYSQL check and Install

I have a VB Windows forms application that uses a mysql database to keep track of everything within the application.. The problem that I know will occur is that most of the applications users will not have MYSQL let alone know how to install it properly... To install the application on the users systems I am using the Visual Studio Setup Installer to handle creation of the msi files.. What needs to happen first is the installer needs to check to see if MYSQL is installed on the host system and verify server name.. If true then import database, if not then install followed by import database... The importing is not the issue here... How do I make the installer install mysql with controlled parameters such as server name, etc, etc. Any ideas on this??? I have hammered google for the past 3 hours looking for bread crumbs on this but to no avail...
Usually existing packages (like the MySQL installer) are added as prerequisites. Visual Studio setup projects do not support custom prerequisite creation. However, this can be done by manually generating the required manifests.
You can find the manifests structure here: http://msdn.microsoft.com/en-us/library/ms229223(VS.80).aspx
These manifests can be generated automatically with the Bootstrapper Manifest Generator tool.
After generating the package manifests, you can add all these files (including the package) in a separate folder in the Visual Studio prerequisites folder, for example:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\
You can then select the prerequisite in your setup project properties page.
Well... that's a good question. The first thing that pops up in my mind:
You could build the check in your application instead of the installer and warn the user about it. If needed, you could provide another installer to make sure everything is available (MySQL and the database itself).
I hope it helps you further.
Yours sincerely,
Roland