TortoiseHG Upgrade shows old version - mercurial

We just upgraded Team City and Mecurial on our server. When I run hg --version on the server is shows version 1.8.3 instead of 2.6?
I have rebooted and in the Workbench UI it shows the correct version, just not at the command line. Any ideas?

I found that version 1.8.3 was not removed correctly and both versions were being referenced in the windows path. Since it was the first one found that is what the application was using. Manually uninstalling this corrected the issue.

Related

WSL install invalid command line option

I want to install an Ubuntu image in WSL.
But, I get a error when running wsl --install:
Invalid command line option: --install
I am using windows 10 education, version 20H2 OS Build 19042.867.
You are attempting to work from Windows Insider documentation, which is not meant for the general public, and it says so. WSL/WSL2 is a fast-moving target.
Most people should use the Microsoft Store to install WSL / WSL2. Search for Ubuntu. Several choices will be displayed. Pick the one simply called Ubuntu, not Ubuntu 20.04 LTS or whatever. The Ubuntu package is kept current.
VSCode has current instructions for installing Ubuntu, then VSCode. You don't have to install VSCode.
Make sure you follow the official instructions:
https://learn.microsoft.com/windows/wsl/install
Crucial is the Windows version: For Windows 10, it should be version 2004 or higher (Build 19041 or higher). Windows 11 should work with all versions.
Older versions need to follow the manual installation procedure: https://learn.microsoft.com/en-us/windows/wsl/install-manual

mysql installer did not find packages in the current bundle suitable for installation windows

I am trying to install MySQL 8.0.23 version from the download page. I ran the .msi file several times and every time, I got the error "mysql installer did not find packages in the current bundle suitable for installation windows". I tried to find a solution online for more than an hour and I could not get the resolution to problem. I even ran it through CMD using admin privileges and still no use. I am installing on a laptop with the following configuration.
Windows 10, 64Bit with 16GB RAM, i7 Hexacore, 1TB SSD.
Can someone please help?
I suspect there is currently a server issue or something on Oracle/MySQL's end, I have tried the 8.0.22 and 5.7.33 Web installers and neither of them are able to find the list of packages to install.
One solution is to download the larger offline installer.
First you must uninstall the MySQL Web Installer, this can be done by opening Apps & Features, finding MySQL Installer - Community and clicking Uninstall.
Then from the MySQL Downloads page, download the larger 400MB MSI installer, once launched you should see a list of Available Products to choose from
Uninstalling the "MySQL Installer - Community" and redownloading and installing the full installer ~422MB from Downloads page worked for me.
After wasting so much time, I find the solution to install MySQL 8 on Windows x64 (64-bit) system.
Run the msi installer
Next (Even it wouldn't work)
Go to below path instead
C:\ProgramData\MySQL\MySQL Installer for Windows\Product Cache
Right click -> Install
mysql-8.0.23-winx64.msi
mysql-connector-c++-8.0.23-win32.msi
mysql-connector-c++-8.0.23-winx64.msi
mysql-connector-java-gpl-8.0.23.msi
mysql-connector-net-8.0.23.msi
mysql-connector-odbc-8.0.23-win32.msi
mysql-connector-odbc-8.0.23-winx64.msi
mysql-connector-python-8.0.23-windows-x86-32bit.msi
mysql-connector-python-8.0.23-windows-x86-64bit.msi
mysql-documents-8.0.23.msi
mysql-examples-8.0.23.msi
mysql-router-8.0.23-winx64.msi
mysql-shell-8.0.23-windows-x86-64bit.msi
mysql-workbench-community-8.0.23-winx64.msi
If nothhing else works, click on Looking for Previous GA versions? and downloaded the one with 500 ~ MB and that did the job for me.
I had the same issues and tried the solutions above which none worked for me.
I did the following and it worked:
In Add/Remove programs from the control panel uninstall all MySQL entries.
Delete all MySQL folders from C:\Program Files\MySQL
Make a restart to your computer
Reinstall using the large MSI installer (more than 400MB)
I tried a lot of steps. Uninstalling and installing it again for current version 8.0.23.
Following steps fixed the below error for me:
No Packages error MySQL did not find packages in the current bundle
suitable for Installation No Compatible servers were found.
Step 1: At first, uninstall and remove MySQL. That includes, uninstalling completely and removing all the remaining MySQL folders from the system.
Step2: Restart the system. Go to the official MySQL website Downloads section. On reaching, install the 2nd MySQL version (the larger one) as shown in the tutorial.
mysql-installer-community-8.0.23.0.msi
After downloading, under Setup Type, you need to choose Developer Default and keep all other steps similar.
Same problem here.
I try on Windows 10 Home edition.
I also try with version 8.0.22: same error.
EDIT 1 18/01/21 : also with large MSI installer (more than 400MB)
EDIT 2 19/01/21 : The problem has fixed. This was probably a problem on the mysql download servers.
The solution in my case was uninstalling MySql Workbench and the installer and then running the installer msi from scratch!
Delete the (mysql-installer-web-community-8.0.23.0.msi) one and download the (mysql-installer-community-8.0.23.0.msi) one. If still not working, right click uninstall, and then right click install again. Worked for me.
I used the bigger download package, mysql-installer-community-8.0.30.0 with 450M. Then I see below image along the way, clicking "Add", then picked the workbench, then green button appeared to move to the right pane, then "execute". Workbench is then installed

mysql installer fails to recognize python 3.4

I'm trying to istall mysql server on a windows 7 machine - that has python 3.4.3 installed. However, when trying to install the python connectors for 3.4, the installer fails to recognize the python installation, saying python 3.4 is not installed.
Has anyone solved this issue before? I'ts driving me nuts...
Just to add to the murkiness, I had the same error with current version of MySql install when attempting with python 3.5 installed (which is the latest python download). Long story short, I uninstalled python 3.5, installed python 3.4.4 (which interestingly didn't update PATH so I updated it manually) and reran installer and it found the python installation.
So my conclusion is the MySql installer is tied to certain versions of the add-on products which in this case meant specifically python 3.4
just in case anyone else has this issue in future. Look at what bit version you have for Python 3.4. When I installed 64 bit version of Python 3.4, this issue went away.
I ran into a similar issue with Python 3.7.2.
In my case, the problem was that I tried to install the 64 bit MySQL connector, but had the 32 bit version of Python installed on my machine.
I got a similar error message:
Python v3.7 not found. We only support Python installed using the Microsoft Windows Installer (MSI) [...]
The problem just went away by installing the 32 bit MySQL connector instead.
From my experience if you have both Py2.7 and Py3.4 installed when installing the mysql connector for py3.4 you will run into this issue. Not sure of the WHY but for some reason if you have py2.7 installed, the py3.4 mysql connector recognizes that version first and just assumes that you have py2.7 installed and does not recognize that py3.4 is installed.
The only way I have found around this is to uninstall py2.7 and then install the py3.4 mysql connector. You can always install py2.7 again after the fact.
I had 3.6.X version and it could not see it; I uninstalled it and installed 3.4.0 version and it passed the requirement.
https://www.python.org/downloads/release/python-340/
Had the same problem and have fixed it. Using a Windows 7 PC and I already had multiple versions of Python installed.
Uninstalled all versions of Python from my PC
Uninstalled the failed MySQL install
Restarted PC
Re-installed Python 3.7 64-bit (the currently required version for MySQL)
Installed the Python 3.7 MySQL Connector separately through the link below
https://dev.mysql.com/downloads/connector/python/
Once that was installed, restarted the MySQL install
The MySQL Installer window will open and already show the Python 3.7 MySQL Connector in the list of products
Click "Add" at the top-right and select all of the products you want and then install them
You should then be able to complete the MySQL setup
I was looking for an similar answer. The correct answer is that there is a bug in the mysqlconnector MSI. When python installs, it creates a registry entry under HKLM Software\Python\PythonCore\3.6-32\InstallPath however, the MSI for mysqlconnector is looking for installation path in the registry Software\Python\PythonCore\3.6\InstallPath as part of the RegLocator/registrypath variable.
Use ORCA to edit the MSI, change the RegLocator so that -32 is in the path. It will install now without error or changes to the system.
I had same problem with python 3.4, all I did was installed python 3.4 version for all users. and added system variable as per this page. it worked for me!
Hope that helps.
Make sure you have the 64bit version of whichever version of Python you are running. It can be downloaded from here:
https://www.python.org/downloads/windows/
Just had the same problem and this solved it for me. I also uninstalled all previous versions of Python before running the mysql setup
I had this problem until I discovered I had installed python based in another architecture (32b). MySQL required 64 bit.
Had the same problem with Python 3.7 when trying to install MySQL in Windows 10. It was fixed by installing the 64-bits version of Python, not selected by default when going to https://www.python.org/downloads/.
I found it in https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe
Here is a much simpler work around:
pip install mysql-connector-python
Is the same package that MySQL is having trouble installing. Just use pip to install it.
Next, go back to the installation style and select "Manual" instead of "Developer". They are identical, but "Manual" allows you to remove packages. Just remove the "Connector/Python" package from the list to be installed.
Carry on with the install, you're done.

How to downgrade Wamp MySQL version?

I am having a problem in downgrading the MySQL version in WAMP. Currently I am using 5.6.12 and I need to downgrade it it 5.5. But before I can download the old version. By choosing 'get more...' option and it leads me to the MySQL add-on. But the website looks different. It only shows the WampServer installation. I can't find the MySQL add-ons.
It is now possible to install the multi MySql versions with executables provided by the wamp team.
Here's what you want to do:
First, make sure you have Wampserver 3.0.9 (or newer) installed on your machine.
As of the time I'm writing this, it is not possible to download this version directly from the wampserver official homepage. You have to download and install 3.0.6 from wampserver.com and then update to 3.0.9. You can find the update installer here .
Then you can install Wampserver addons from source forge.
In your case, you just have to pick the version of MySql that you want and to install it.
Finally, restart wamp and then you will be allowed to pick the version of MySql that you want from the wamp option box pinned on the bottom right of your windows task bar.
Hope it helps someone !
Yes, you can do it.
1 - download the version of mysql that you want to install.
2 - Copy / Paste it in your folder C:\wamp\bin\mysql
3 - Close and run Wamp server again
4 - Left click the Wamp icon in your taskbar then Mysql > Version > 'select your version'
Example mysql folder name : "mysql5.6.17"
Note: If you copy the version from an existing server with database on it, the database would be copied as well.
maybe you should ask this in superuser.com, but you may check this one at:
http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.2/
I think now they are providing an already-packaged mysql in a single wamp-installer..
So, just try to download the older version..
WampServer version 2.2 has MySQL 5.5.24..
hope this helps..
here is what i did :
(I have wamp 3)
install wamp 2.2 (dont have to remove current version)
go to C:\wamp\bin\mysql
copy sql5.5.24 folder and paste it in C:\wamp64\bin\mysql(wamp 3 folder)
remove wamp 2.2
restart wamp
click on wamp icon in right corner ot taskbar ,select MySQL --> version and there it is
cheers :)

MySQL driver for Rails in Windows 7 x64

I've got problem with connecting to MySQL database on my freshly installed Windows 7 machine.
I'm getting this error when I try to migrate my database.
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install
the mysql gem and try again: gem install mysql.
rake aborted!
193: %1 is not valid Win32 application - C:/Ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1-x86-mswin32/lib/1.8/mysql_api.so
I currently have installed
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
mysql version 5.0.86 for Win64
gem 1.3.1
mysql-2.8.1-x86-mswin32
My colleague had a similar problem while running rails on Windows 7.
He had to replace the libmySQL.dll (in the PATH) with the one from InstantRails.
I spent hours trying to get MySQL and Rails to play nicely on Windows (albeit XP, both 32 and 64-bit versions). I finally gave up since my production box was running Linux (on which Rails and MySQL play very nicely) and just used SQLite 3 for development. No headaches to get it working and it runs fast enough for development purposes.
However, I did hear of some people that had luck replacing one of the DLLs provided by the gem with one provided by the official MySQL distribution. Also, some people simply didn't have this DLL at all which was causing problems. In the end, it didn't work for me, but hopefully you will have more luck.
For Rails or DataMapper or whatever to talk to MySQL you need a 32-bit driver in Rails\bin. The driver is called libmysql.dll. Even if you have a 64-bit server you need a 32-bit driver.
64-bit driver will fail will ruby/gems/1.8/gems/do_mysql-0.10.2-x86-mingw32/lib/do_mysql/1.8/do_mysql.so: 193: %1 is not a valid Win32 application.
A wrong 32-bit version will crash with memory allocation error or something weird like that (suggested solution to take libmysql.dll from another project may not work with newer versions of MySQL).
I am new to this rails. I just have passed the same issue in vista. after downloading libmySQL.dll (in the PATH) with the one from InstantRails it starts working.
sukumaaar#gmail.com
The solution to this problem is to simply install the 32-bit version of mysql.
Fast forward to March 2012. I solved this problem on windows 7 x64) by renaming my Ruby\b\bin\libmysql.dll and then copying libmysql.dll from C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\lib\opt to Ruby\bin
There was a newer version of libmysql.dll at C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.37 but the gem didn't like the non 6.x version.
Could this be related to Ruby on Rails Win7 x64? ? If so, what was the fix again (couldn't figure it out from the first answer) ?
Another option which has worked for me is to download the 32bit version of mysql for windows and just keep the libmysql.dll and add the location of this DLL to the windows PATH.
Adding the libmySQL.dll from InstantRails to a dir in my path worked for me too. It's really sad that we have to do this sort of thing though. I'd like to see the gem, or MySql itself, install this DLL properly.
I'm running the current versions of everything on WinXP SP3: Ruby 1.9.2p0, MySQL 5.5, mysql 2.8.1. This issue is still present and to fix it I had to copy the Instant Rails libmysql.dll into my C:\Ruby192\bin directory. I initially copied the libmysql.dll file that came with MySQL 5.5 but that caused a seq fault!