

If there is no password at the beginning, enter the database directly To uninstallbrew uninstall mysql5.7rm -rf /usr/local/var/mysqlrm /usr/local/etc/my.cnf To Reinstallbrew install mysql5.7brew link -force mysql5.7brew services start mysql5. CP / usr / local / cell / MySQL / 5.6.16/ / library / launchagents / 5.6.16 is the database version number, which is modified according to the version number you installed at that time. Then prompt to enter the database password. If you want to set startup, execute the following command.

Mysql_install_db –verbose –user= root –basedir=”$(brew –prefix mysql)” –datadir=/usr/local/var/mysql –tmpdir=/tmp Next, start MySQLĪfter startup, you can log in. (mysql-installer-web-community-5.6.26.0.msi) MD5: 1c8f87517e6fb44ec7d5fb755c9c8af2 Signature Windows (x86, 32-bit), MSI Installer: Jul 15, 2015: 253.

Search the Internet for half a day, find solutions and execute them in turn unset TMPDIR When the installation is completed successfully, an error is reported when you want to log in: ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2) You are presented with the opening installer dialog. For example, if you have downloaded the package for MySQL 5.6.51 and macOS 10.8, double-click mysql-5.6. It is named according to the MySQL version and the macOS version you have chosen.
#MAC INSTALL MYSQL 5.6 HOW TO#
For what brew is, how to install it, it is recommended to check it on the brew official website, with the address: brew official websiteĪfter installation, it is very convenient to install other software. Double-click the MySQL installer package. Undoubtedly, installing a brew is a good choice.
#MAC INSTALL MYSQL 5.6 SOFTWARE#
Recently, the MAC system has been reinstalled, and all commonly used software needs to be reinstalled.
