Made so far will take effect immediately. Reloading the privilege tables will ensure that all changes Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y This is also intended only for testing,Īnd should be removed before moving into a production This ensures that someone cannot guess atĭisallow root login remotely? (Press y|Y for Yes, any other key for No) : yīy default, MySQL comes with a database named 'test' thatĪnyone can access. Normally, root should only be allowed to connect from Remove anonymous users? (Press y|Y for Yes, any other key for No) : y You should remove them before moving into a production Testing, and to make the installation go a bit smoother. Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0ĭo you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : yīy default, a MySQL installation has an anonymous user,Īllowing anyone to log into MySQL without having to haveĪ user account created for them. STRONG Length >= 8, numeric, mixed case, special characters and dictionary file MEDIUM Length >= 8, numeric, mixed case, and special characters There are three levels of password validation policy: Press y|Y for Yes, any other key for No: y 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. 并且最好要限制root用户远程访问,删除无名用户和测试库。 $ mysql_secure_installationĬonnecting to MySQL using a blank password. 启动mysql的命令如下: $ brew services start mysql □ /usr/local/Cellar/mysql/5.7.18_1: 321 files, 232.9MBĮRROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Everything goes well and I am also successful with the mysqlinstalldb. Or, if you don't want/need a background service you can just run: Im trying to setup up MySQL on mac os 10.6 using Homebrew by brew install mysql 5.1.52. To have launchd start mysql now and restart at login: MySQL is configured to only allow connections from localhost by default We've installed your MySQL database without a root password. => /usr/local/Cellar/mysql/5.7.18_1/bin/mysqld -initialize-insecure -user=yueqi -basedir=/usr/local/Cellar/mysql/5.7.18_1 -datadir=/usr/local/var/mysql -tmpdir=/tmp If you need to have this software first in your PATH run:Įcho 'export PATH="/usr/local/opt/openssl/bin:$PATH"' > ~/.bash_profileįor compilers to find this software you may need to set:ĬPPFLAGS: -I/usr/local/opt/openssl/include This formula is keg-only, which means it was not symlinked into /usr/local,īecause Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries. => Pouring openssl-1.0.2l.Ī CA file has been bootstrapped using certificates from the SystemRoots => Installing dependencies for mysql: openssl $ /usr/bin/ruby -e "$(curl -fsSL )" 安装Mysql $ brew install mysql If you haven’t already, clone wordpress-develop into wherever you keep your projects.Homebrew 简称brew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件,相当于Linux下的apt-get、yum等软件包管理工具。 安装Homebrew You can check where Homebrew is installing files by running brew -prefix. If you have an older Intel Mac, Homebrew will use /usr/local, and you will need to replace /opt/homebrew with /usr/local wherever you see it. This is where Homebrew will install files if you have a fancy new Apple Silicon Mac. Throughout this tutorial, I’ll use paths that begin with /opt/homebrew. Go and install Homebrew if you haven’t already. Here’s how to set up Apache, PHP, and MySQL for WordPress Core development using Homebrew and macOS. You really owe it to yourself to take a bit of time and set up a fast development environment. If you’re a WordPress contributor, you’re making thousands of these requests per day. That’s a 310 ms difference! More than six times faster!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |