Skip to content

Commit 03eb7d8

Browse files
committed
Added tips for first-time MySQL installers
1 parent bc5d933 commit 03eb7d8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,26 @@ __For Mac users__: Follow the step-by-step instruction below (we are working on
6868
You need to have MySQL installed before hand.
6969

7070

71-
6. Configure your database next. You need to fill the `username` and `password` fields on `config/database.yml.template` and rename it to `config/database.yml`. Depending on how you installed MySQL and which platform you're running on, you might have to change the database socket setting in this file. Search online to determine where your MySQL server's socket is if you don't already know.
71+
6. Configure your database next. You need to fill the `username` and `password` fields on `config/database.yml.template` and rename it to `config/database.yml`.
72+
73+
-The default username is "root"
74+
75+
-If this is your first time installing MySQL, you may need to set the root password.
76+
77+
Start the server:
78+
```sudo /usr/local/mysql/support-files/mysql.server start```
79+
Set the password:
80+
```mysqladmin -u root password "[New_Password]"```
81+
82+
Depending on how you installed MySQL and which platform you're running on, you might have to change the database socket setting in this file. The default socket location is `/tmp/mysql.sock`.
7283

7384
7. Set up initializer for Devise Auth systems with a unique key.
7485

7586
```console
7687
cp config/initializers/devise.rb.template config/initializers/devise.rb
7788
```
7889

79-
Make sure you fill in `<YOUR_WEBSITE>` and insert a new `secret_key`. You can get a random token with
90+
Make sure you fill in `<YOUR_WEBSITE>` and insert a new `secret_key` in devise.rb. You can get a random token with
8091

8192
```sh
8293
$ bundle exec rake secret

0 commit comments

Comments
 (0)