![]() ![]() sock is in the TMP directory, so I continue to execute mysql_secure_installation. I guess it was created when the MySQL service started, so I executed the following command in advance: rver startĪt this point, the file mysql. ![]() The following error occurred: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) When you need a password, you return directly. So I followed its instructions and executed the order: mysql_secure_installation You can see that brew started MySQL at the time of installation (no need to execute the mysql_install_db command again as mentioned on the internet), and there is no password at present. We've installed your MySQL database without a root password. Install mysql, enter the following commands at the terminal and return: brew install mysqlĪfter waiting for about 5 minutes (depending on the speed of the network) to complete, you will see this section of prompt: /usr/local/Cellar/mysql/5.7.9/bin/mysqld -initialize-insecure -user=comet ![]() My system is Mac OS X 10.11, and MySQL 5.7.9 is going to be installed.īefore you start, assume that your brew is installed and ready to use. Now I record it for the convenience of the people behind. Through continuous Baidu, Google and attempts, I finally solved the problem perfectly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |