homebrew nysql launch 1

homebrew nysql launch

$ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)

Here is what the above code is Doing:
1. Install MySQL
2. Start MySQL
3. Create a database called ‘mydb’
4. Create a user called ‘myuser’ with password ‘password’
5. Grant all privileges on the ‘mydb’ database to the ‘myuser’ user
6. Quit the MySQL shell
7. Start the MySQL server

Similar Posts