Bug #79059 MySQL installer installs Python 3.4 x64 Connector into wrong directory.
Submitted: 1 Nov 2015 15:26 Modified: 6 Nov 2015 7:08
Reporter: Iam Notgiving Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL for Windows: Installer Severity:S3 (Non-critical)
Version:1.4.11.0 OS:Windows (Win 7 x64)
Assigned to: CPU Architecture:Any
Tags: mysql installer python connector x64 wrong directory x86

[1 Nov 2015 15:26] Iam Notgiving
Description:
What I did:

1. I installed Connector/Python (3.4) 2.1.3 x64 using MySQL Installer 1.4.11.0.
2. During installation I clicked on Advanced options and specified the location where I wanted the connector to be installed to C:\Program Files\MySQL\Connector\Python3.4. 
3. Installation finished successfully.
4. After installation, I was able to find MySQL connector in the list of installed programs.

What I expected: 

I expected to be able to import mysql.connector module from my Python 3.4.3 x64 script.

What actually happend:
It gave me an error that there is no such module.

Workaround:
The problem was, that MySQL installer ignored my choice of installation directory and instead it installed MySQL connector into "C:\Program Files (x86)\MySQL\MySQL Connector Python 2.1 for Python 3.4". And instead of adding libraries to current Python 3.4.3 x64 installation (it was added in PATH in system variables before installation) it created completely new folder with name Python3.4 inside "C:\Program Files (x86)\".

To make it work I had to copy all files from "C:\Program Files (x86)\Python3.4\Lib\site-packages" into "C:\Program Files\Python3.4\Lib\site-packages".

Downside of workaround:
If I now uninstall MySQL connector, it will not delete all its files since it does not know where they are.

How to repeat:
1. Run MySQL installer and select Connector/Python (3.4) 2.1.3 x64
2. Specify a custom installation directory.
3. Finish installation.
4. Verify that is was installed in wrong directory.
5. Try to import mysql.connector module from python IDLE.

Suggested fix:
1. MySQL installer should respect my choice of installation directory.
2. It should copy libraries needed into Python3.4 directory in Program Files not in Program Files x86.
[1 Nov 2015 15:27] Iam Notgiving
Advanced options in MySQL installer and custom Dir specified

Attachment: advanced options and custom dir.png (image/png, text), 55.42 KiB.

[1 Nov 2015 15:28] Iam Notgiving
Installation log file

Attachment: installation log file.txt (text/plain), 7.50 KiB.

[6 Nov 2015 7:08] Chiranjeevi Battula
Hello Iam Notgiving,

Thank you for the bug report.
Verified this behavior on MySQL for Windows installer with Connector/Python (3.4) 2.1.3 x64 using MySQL Installer 1.4.11.0.

Thanks,
Chiranjeevi.
[6 Nov 2015 7:09] Chiranjeevi Battula
screenshot.

Attachment: 79059.PNG (image/png, text), 87.75 KiB.