Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Compatibility with MacOS Sierra

Does anybody know of any compatibility issues or quirks with MySQL Community Server/Workbench on macOS Sierra? I recently did an installation on a Mac that had never held MySQL before and it doesn't seem to be working correctly. (Now maybe I just set it up wrong, but the since the installer offers no advanced options that doesn't seem to be the case.)

I can create schemas and tables, but when I go to actually query the table nothing happens. The activity indicator spins endlessly. I took a look at Activity Monitor and it doesn't show mysqld actually doing anything—the whole setup just appears to be deadlocked. Any ideas?

Here's what I'm trying to use:

  • MySQL Community Server 5.7.15
  • MySQL Workbench 6.3.7
  • macOS Sierra 10.12 (16A323)
like image 214
Bob Avatar asked Oct 11 '16 16:10

Bob


People also ask

Is MySQL compatible with Mac?

MySQL for macOS is available in a number of different forms: Native Package Installer, which uses the native macOS installer (DMG) to walk you through the installation of MySQL. For more information, see Chapter 2, Installing MySQL on macOS Using Native Packages. You can use the package installer with macOS.

Why MySQL is not working in Mac?

The reason behind the MySQL Workbench client not working can be many. It can be because your macOS version is not compatible with the version of the Workbench that you downloaded, or maybe because the version of Python installed on your macOS is not compatible with the version of Workbench you have downloaded.

What version of MySQL do I download for Mac?

The free download for the Mac is the MySQL Community Server edition. Go to the MySQL website and download the latest version of MySQL for MacOS. Select the native package DMG archive version, not the compressed TAR version.


2 Answers

I had this same issue. I found out that the first instance you open just continues to spin when trying to run simple select statements with what seems to be no reason. You cannot even close the tab once it is open without closing all of MySQL Workbench. However, if you open up the same instance again it seems to work fine.

like image 164
Jonathan Avatar answered Oct 03 '22 04:10

Jonathan


UPDATE!

macOS High Sierra needs MySQL Workbench 6.3.10

See changelog for 6.3.10 version


SOLVED in version 6.3.9

Tested on:

macOS Sierra
Version 10.12.3 (16D32)

MySQL

Workbench 6.3.9
Version 6.3.9 build 10690321 CE (64 bits) Community
----> OK

Download: MySQL Workbench 6.3.9
Packages for Sierra (10.12) are compatible with El Capitan (10.11) and are Yosemite (10.10)

Changelog: among others...

  • In some cases, executing a query caused MySQL Workbench to become unresponsive when the host was macOS Sierra. (Bug #25036263, Bug #83658)


Original answer in code snippet below:

I ***temporary*** solved changed the ***group*** of the application.      I tried everything, uninstalling, reinstall, change many settings... finally I thought that must be something with the security... was not normal, I check firewall rules, nothing... And just in case, I try with file permission and it was there.    I was installed in the ***admin group***.    Changed to ***staff*** solve the problem.          $ sudo chown <USER>:staff /Applications/MySQLWorkbench.app    > <sup>Where of course, `<USER>` is **your** username</sup>        Ex.      $ sudo chown gmo:staff /Applications/MySQLWorkbench.app    Tested and working!     - Go back to admin group... problem came back.   - Changed to staff again... problem solved.    I hope this is a global solution, please check yours.      ###Edit:  Solution not stable, problem came back after a few attempts.    Try with `root:admin`, the same...     ---    ### UPDATE  *`Workaround until new version is release`*    Roll back to 6.2 version and working good.    Tested on:  > macOS Sierra    > Version 10.12 (16A323)    MySQL  > Workbench 6.3    > Version 6.3.7 build 1199 CE (64 bits) Community    > http://dev.mysql.com/downloads/workbench/6.3.html    > `----> FAILS`    > <sup>*Randomly, even changing group or creating new instances.*</sup>    > Workbench 6.2    > Version 6.2.5.0 build 397 (32 bits) Community    > http://dev.mysql.com/downloads/workbench/6.2.html    > `----> OK`    > <sup>*Work as expected.*</sup>
like image 26
gmo Avatar answered Oct 03 '22 05:10

gmo