Install two different versions of MySQL Workbench - mysql-workbench

My problem is the same that this one: https://dba.stackexchange.com/questions/253777/is-it-possible-to-run-multiple-versions-of-mysql-workbench
I need to use mysql workbench 8 for mysql server version 8.0.27 and mysql workbench 6 for a version 5 mysql server.
The problem is that when installing workbench 8 it deletes existing workbench with lower version.
I've tried to install Workbench6 on a completely different location to see if the installation does not find it but I it finds it anyway.
Also tried to install a 32 bit version of workbench 6 but again, version 8 delete it when installing.
Found some comments saying to enable multiple instances in menu -> edit -> preferences -> others, but this is only to open multiple instances of the same version.
I've looked for a portable version of workbench 6 but had no luck.
I don't understand why this problem is not having an answer by MySQL, even the MySQL forum doesnt have a solution or even an explanation why this is not possible.

I use a Vm for that porpose. where an "old 5.7.xx is installed alongside a workbench 6.3that work with that well, because the newer version don't do.
You can use for that purpose also a linux server as vm not only windows

Found a portable version of Workbench 5.2.47. I've upload it to my github.
Although I use this software with no problems until now, this is not from my authorship, use it at your own risk.

Download latest zip archive (version 6.3.8 and earlier has it) from here: https://downloads.mysql.com/archives/workbench/
Look out because x64 archive wasn't working in my case but 32bit works fine.
Unzip to different folder and that's it.

Related

How to install plv8 in postgresql 14 for windows?

I tried installing plv8 from
[1]: https://martendb.io/v3/documentation/admin/installing-plv8-windows
but it did not work.
The challenge is Windows and Version 14. The solution you point to has only the files going up to PG Version 12. It works on 12, I used that on 12.
But I am also trying to find the windows version of this extension for PG 14. So far, people have updated the Linux builds for working with 14.
The correct, full answer is to download the source from github.
Install Version 14 of PG (You need the header files). Install the tools spelled out in the PLV8\Windows directory README. And then compile everything locally. This is what the Linux users do to get the binaries for their specific system.
we are grabbing the source from here: https://github.com/plv8/plv8/tree/master
We are working on this right now. We will push the compiled (under windows 10 x64) Versions up to another GIT and publish the link for others as our way of supporting this. (But it's not trivial, this stuff is made more for the Linux side of things)

Why can't I install MySQL Workbench

I've downloaded the MySQL installer and tried to run it. On the Check Requirements, MySQL Workbench 8.0.20 is listed. I clicked and got this message in the requirement:
Microsoft Visual C++ 2019 Redistributable Package (x64) is not installed. Latest binary compatible version will be installed if agreed to resolve this requirement.
I click Next and I get:
One or more product requirements have not been satisfied.
I click Yes, and MySQl Workbench is not listed. How do I install?
The intuitive thing is to go to https://dev.mysql.com/downloads/workbench/ and select the
Windows (x86, 64-bit), MSI download.
However this failed for me with VS C++ 2019 Redistributable required even after installing the latest version (2015-2019).
So I clicked on
Go to Download Page button which took me to:
https://dev.mysql.com/downloads/windows/installer/8.0.html
and selected the 2nd, larger download (the 435MB file at this writing)
Although this is labeled (x86/32-bit), don't be fooled. It includes both versions and will install the 64 bit version on a 64-bit machine.
The following link will download the current installer as of 6/23/2021:
https://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-community-8.0.25.0.msi
If you are installing significantly later than 6/23/2021, I suggest you start at
https://dev.mysql.com/downloads/workbench/
to get the latest version.
Update 2023: The installer has a button to "download prerequisites" that opens https://dev.mysql.com/downloads/workbench/
From there get the MySQL Installer and hit next to go to step 2. There, you can select only the "ODBC Connector" that will also include the redistributable. It is far smaller than the whole MySQL db install (e.g. 20Mb).
I had the same problem when trying to install the 35mb 64bit version. Kept coming back with requiring Visual C++ 2019...
Poking around found that if I went back to the install page and looked around the 32bit version of MySQL, there are two other installs. I chose to install the 405mb MySql Workbench 8 32bit and was able to install successfully. Albeit, mine was an upgrade from 6 to 8.0.20.
Uninstall the previous MYSQL and download the (Windows (x86, 64-bit), ZIP Archive
Debug Binaries & Test Suite) 499Mb version, when the error prompts on the screen simply hit No and execute. If the error persists, you might want to to download Microsoft Visual C++ 2015-2019 Redistribution manually and then continue the installation again.
Install Microsoft visual C++ X86 or X64 from this link ( https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 ).
For those seeing this later, I had the same issue with a fresh install of Win11, new PC, and trying to get 8.0.3.1 WB, and got the same dependency error on VC++ 2019. I followed all the same guidance above, and on other threads but it didn't work. The WB installer didn't recognize the VC++ redist pack as being installed.
I went to my old PC, found the old version of VC++ redist, and installed it....voila, WB would install. I used VC++ 14.30.30708, and it worked fine. As of this writing the current version of VC++ redist from the links above, was 14.34.31931
Hope it helps someone.

How to remove pgAdmin 4 old version?

On my Windows 10, I used the Windows installer made by EnterpriseBD and installed postgresql 11.1. It however seems to have came with version 3.5 of pgAdmin 4. So, I downloaded pgAdmin 4 version 4.0 and installed it on my PC. Now both the two versions exist on the PC.
Did I do anything wrong during installation? How can I remove the version 3.5 of pgAdmin 4 properly?
Thanks in advance for any help.
Go to Programs and Features -> postgresql 11 and click uninstall. A window opens and allows you to select uninstalling whole postgresql or individual components. You can select pgadmin from there.
Hope it helps :)

MAMP Downgrading from version 5 back to 4 and getting error on start

Receiving an error trying to load up MAMP 4.5 after downgrading from version 5 to 4.5 because their serial number system is broke and no one in support is working.
This message comes up when trying to start, any thoughts?
Downloaded from the website under "older versions"
https://www.mamp.info/en/downloads/older-versions/
OS: Mac
I had to downgrade, as well; though in my case it's because mySQL will not upgrade my databases, but I was able to license it.
I was able to successfully downgrade by doing the following:
Backed up the /Applications/MAMP folder (just in case)
Deleted /Applications/MAMP and /Applications/MAMP Pro.app by moving them to the trash (these were created by MAMP Pro 5 installer)
Downloaded and installed MAMP Pro 4.5 from the link you posted above
I'm back up and running with MAMP Pro 4.5 at this point, so looks like everything worked out. Good luck! Depending on your setup, you might need to migrate stuff out of the /Applications/MAMP folder (definitely back that sucker up before you delete it).
Please note: For my original answer, I mis-read the MAMP Pro docs and incorrectly re-located the database directory in /Applications/MAMP/db to my user Library folder (~/Library). This apparently did nothing, because the databases were actually located in the root-level /Library folder. I highly recommend backing this folder up prior to upgrading or downgrading. The MAMP 5 installer automatically copies your mysql56 folder, but the problem I ran into is that evidently it didn't copy all of the database folders within it (which is presumably why the mySQL 5.7 upgrade logic was failing hard on my end). So a backup is a great idea, because the steps the MAMP installer takes to keep a historical backup don't actually work too well in my experience.

InnoSetup - How to detect if MySQL Workbench is installed?

I'm creating an installer for modeling software, and we encourage our users to install MySQL Workbench to access model output. However, because the MySQL installation process isn't exactly straight forward, many users end up only installing MySQL Server and fail to install MySQL Workbench. How can I detect during my installation process if MySQL Workbench is installed?
On my development machine, there is a registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB\MySQL Workbench 6.3 CE\Location. I could check to make sure that path exists, but this approach requires MySQL registry keys to be up-to-date (I've been burned relying on this approach trying to detect MySQL Server) and it is version specific.
If it turns out that this is the best option, are there other registry paths that I would need to check?
Am I safe checking MySQL Workbench 6.2 CE, MySQL Workbench 6.3 CE, MySQL Workbench 6.4 CE, etc, or are there other versions out there (e.g. non-"Community Edition")? This isn't apparent to me after spending some time on Workbench's website.
More information:
Since MySQL updates their package much more frequently than we update ours, we are hesitant to bundle a version of the MySQL MSI in our installation package and do a silent install, because it will likely be out of date. Instead, we detect if MySQL has been installed, and if not, we direct them to MySQL's download page and tell them to install MySQL Server and Workbench. This generally works for getting Server installed, but Workbench frequently fails (either because of the pre-reqs and MySQL Installer's non-intuitive prompts, or because they don't notice our recommendation). Therefore, I'm looking for a way to detect if Workbench is installed so I can offer a second prompt if needed.
Does the Workbench GUID stay the same over all the different versions? I'd hate to hard code one in and then have my installer be unable to detect newer/older/non-"Community Edition" versions.