![]() You can now start the MySQL server by running: brew services start mysql The above command should take a while, then print something like this: On macOS, you can install MySQL easily using Homebrew. So, stay tuned.Step by step instructions to install MySQL on macOS using Homebrew In the next part and last part, we are going to show you how to custmize the localhost. Now, you have a fully functioning local server for developing PHP-based website in Mac. In this tutorial, we have done configuring MySQL. In the following example, as shown below, I’ve created a database named wordpress for my WordPress site. Once you are connected to the MySQL, you can create, modify, and delete databases as well as creating new MySQL users. Socket: Set the socket path to /var/mysql/mysql.sock.In fact, we haven’t created any databse, yet. Database: We are not going to connect to a particular database. ![]()
0 Comments
Leave a Reply. |