Skip to content

Commit b4e107d

Browse files
authored
docs(README): update missing MySQL config steps
1 parent b3a5afd commit b4e107d

File tree

1 file changed

+34
-23
lines changed

1 file changed

+34
-23
lines changed

README.md

+34-23
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ $ npm install
6969
### If you choose SQLite
7070

7171
``` bash
72-
7372
# create database
7473
$ touch database/database.sqlite
7574
```
@@ -84,8 +83,10 @@ Then in file ".env" replace this database configuration:
8483

8584
To this:
8685

87-
* DB_CONNECTION=sqlite
88-
* DB_DATABASE=/path_to_your_project/database/database.sqlite
86+
```
87+
DB_CONNECTION=sqlite
88+
DB_DATABASE=/path_to_your_project/database/database.sqlite
89+
```
8990

9091
### If you choose PostgreSQL
9192

@@ -121,23 +122,36 @@ Then in file ".env" replace this database configuration:
121122

122123
To this:
123124

124-
* DB_CONNECTION=pgsql
125-
* DB_HOST=127.0.0.1
126-
* DB_PORT=5432
127-
* DB_DATABASE=laravel
128-
* DB_USERNAME=laravel
129-
* DB_PASSWORD=password
125+
```
126+
DB_CONNECTION=pgsql
127+
DB_HOST=127.0.0.1
128+
DB_PORT=5432
129+
DB_DATABASE=laravel
130+
DB_USERNAME=laravel
131+
DB_PASSWORD=password
132+
```
130133

131134
### If you choose MySQL
132135

136+
1. Install MySQL
137+
2. Create database (this way or another)
138+
``` bash
139+
$ mysql -uroot -p
140+
mysql> create database laravel;
141+
```
142+
Create a user with privileges to the laravel database (root user may not work while it requires a sudo)
143+
144+
3. Update .env file
133145
Copy file ".env.example", and change its name to ".env".
134-
Then in file ".env" complete this database configuration:
135-
* DB_CONNECTION=mysql
136-
* DB_HOST=127.0.0.1
137-
* DB_PORT=3306
138-
* DB_DATABASE=laravel
139-
* DB_USERNAME=root
140-
* DB_PASSWORD=
146+
Then in file ".env" complete database configuration:
147+
```
148+
DB_CONNECTION=mysql
149+
DB_HOST=127.0.0.1
150+
DB_PORT=3306
151+
DB_DATABASE=laravel
152+
DB_USERNAME=root
153+
DB_PASSWORD=
154+
```
141155

142156
### Next step
143157

@@ -349,17 +363,14 @@ If the column is a foreign key, it should be specified: in the field "Optional r
349363
#### E-mail Templates
350364
It is an example of managing e-mail templates. Allows you to create, edit and delete templates. It also allows you to send an E-mail to a selected address.
351365

352-
353366
## Creators
354367

355-
**Łukasz Holeczek**
356-
368+
***Łukasz Holeczek***
357369
* <https://twitter.com/lukaszholeczek>
358-
* <https://github.com/mrholek>
359-
360-
**Andrzej Kopański**
370+
* <https://github.com/coreui>
361371

362-
* <https://github.com/xidedix>
372+
**CoreUI Team**
373+
* <https://github.com/orgs/coreui/people>
363374

364375
## Community
365376

0 commit comments

Comments
 (0)