Skip to content

Commit a721b3c

Browse files
committed
More general permission grant SQL
1 parent 5b3b6b9 commit a721b3c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

README.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ GRANT ALL PRIVILEGES ON simple_cms_development.*
116116
TO 'whateverUsernameYouDesire'@'localhost'
117117
IDENTIFIED BY 'whateverPasswordYouDesire';
118118
```
119+
120+
To grant permissions to everything user
121+
```
122+
GRANT ALL PRIVILEGES ON *.*
123+
TO 'whateverUsernameYouDesire'@'localhost'
124+
IDENTIFIED BY 'whateverPasswordYouDesire';
125+
```
126+
119127
You can now check the privileges of that user.
120128
```
121129
SHOW GRANTS FOR whateverUsernameYouDesire@localhost;
@@ -148,7 +156,7 @@ The most common one being `RAILS_ENV=production`
148156
```
149157
rake db:schema:dump RAILS_ENV=production'
150158
```
151-
or for cloud9,
159+
or for cloud9,
152160
```
153161
rake db:schema:dump RAILS_ENV=c9'
154162
```
@@ -160,7 +168,7 @@ Migrations are Ruby's way of interacting with the database schema using Ruby cod
160168
rails generate migration MyMigrationName
161169
```
162170
### Generate Model
163-
Generating a model will also generate an associated migration.
171+
Generating a model will also generate an associated migration.
164172
In this case the associated migration would be named with the timestamp and then _create_model_names.rb
165173
```
166174
rails generate model ModelName
@@ -186,7 +194,7 @@ rake db:migrate VERSION=0
186194
#### Get the status of the migrations
187195
To see if migrations are up or down
188196
```
189-
rake db:migrate:status
197+
rake db:migrate:status
190198
```
191199

192200
#### VERSIONs
@@ -197,13 +205,13 @@ rake db:migrate VERSION=20160917170621
197205
```
198206

199207
## Rails Console
200-
From the root of your application, you can perform tasks using your application
208+
From the root of your application, you can perform tasks using your application
201209
to models and the database through `rails console`
202210
```
203-
rails console
211+
rails console
204212
```
205213
To specify enironment:
206214
```
207215
rails console c9
208216
```
209-
For more info, check out [Rails Console]('./Tutorial_Docs/Rails_Console.MD').
217+
For more info, check out [Rails Console]('./Tutorial_Docs/Rails_Console.MD').

0 commit comments

Comments
 (0)