![]() Testing, and to make the installation go a bit smoother. Re-enter new password: // Confirm password againīy default, a MySQL installation has an anonymous user,Īllowing anyone to log into MySQL without having to haveĪ user account created for them. Press y | Y for Yes, any other key for No: N // This selected yes password length must be set to more than 8 bits, but I only want 6 bits. Would you like to setup VALIDATE PASSWORD plugin? ![]() It checks the strength of passwordĪnd allows the users to set only those passwords which are VALIDATE PASSWORD PLUGIN can be used to test passwordsĪnd improve security. ![]() cometdeMacBook-Pro:~ comet$ mysql_secure_installationĬonnecting to MySQL using a blank password. 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. ArchivesCategories |