折腾:
期间,需要去彻底卸载掉,mac中之前通过dmg安装的mysql
mac uninstall mysql dmg
- Description: MYSQL DOES NOT START WITH SYSTEM PREFERENCES ON MAC OSX 10.12 and 10.13 How to repeat: Steps: 1.- Download MySQL version for MacOs mysql-5.6.39-macos10.13-x8664.dmg or mysql-advanced-5.6.39-macos10.13-x8664.dmg 2.- Follow the installation steps until the Installation finished 3.- Click on apple icon in the left top corner 4.
- The 'physical' location of the mysql databases are under /usr/local/mysql. The mysql is a symlink to the current active mysql installation, in my case the exact folder is mysql-5.6.10-osx10.7-x8664. Inside that folder you'll see another data folder, inside it are RESTRICTED folders with your databases.
知道此处不是brew安装的mysql,也去:
I need to install MySQL 5.6 on my Mac, running under Mojave. (Because AWS Aurora Serverless only allows MySQL 5.6) That wouldn't be an issue if a.dmg was available, but there are none for MacOS for this particular version, too old I guess? Mac OS X 10.9 (x86, 64-bit), DMG Archive: OS: Mac OS X (OSX 10.9) Assigned to: CPU Architecture: Any: Tags. The downloaded file 'mysql-5.6.21-osx10.9-x8664.dmg.
➜ ~ cat /Library/Receipts/InstallHistory.plist | grep mysql
<string>com.mysql.mysql</string>
<string>com.mysql.prefpane</string>
<string>com.mysql.launchd</string>
<string>com.mysql.mysql</string>
<string>com.mysql.prefpane</string>
<string>com.mysql.launchd</string>
➜ ~ vi /Library/Receipts/InstallHistory.plist
去相关的<dict></dict>的部分删除掉
➜ ~ cat /Library/Receipts/InstallHistory.plist | grep mysql
Mysql 5.6 Mac Download
➜ ~
【总结】
我此处不是brew去install的mysql,所以没法用:
我之前是通过dmg文件:
mysql-5.7.22-macos10.13-x86_64.dmg
去安装的mysql。
现在想要彻底卸载:
另外:
有些东西:
没有,所以不需要也没法删除:
(注:
参考:
发现很多东西,比如:
Mysql 5.6 Mac Dmg High Sierra
/etc/hostconfig 中的其中一行: MYSQLCOM=-YES-
是如果用brew安装的mysql,才会有,我此处用dmg安装的,所以是没有)
而好像还有个相关的历史记录,可不删。
Mysql 5.6 Mac Dmg 10.7
想要删则是:
Mysql 5.6 Mac Dmg Download
转载请注明:在路上 » 【已解决】Mac中如何彻底卸载之前通过dmg安装的mysql