diff --git a/.env.example b/.env.example index ae62480..c6ce6ce 100644 --- a/.env.example +++ b/.env.example @@ -45,8 +45,8 @@ APP_SECRET=093y2032357vny20934v9823yn545v02 -DATABASE_URL="mysql://name:pass@server.com:3306/dbname" -# DATABASE_URL="mysql://name:pass@server.com:3306/dbname?serverVersion=5.7.21" +DATABASE_URL="mysql://username:password@server.com:3306/dbname" +# DATABASE_URL="mysql://username:password@server.com:3306/dbname?serverVersion=5.7.21" # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4" # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4" diff --git a/README.md b/README.md index bb1b7b6..7ecf729 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,19 @@ git clone git@github.com:artemsites/cms-sheets.git ``` -## Copy and rename `.env.example -> .env` - +## Copy and rename +``` +.env.example -> .env +``` +## Set connection MySQL in .env +``` +DATABASE_URL="mysql://username:password@server.com:3306/dbname" +``` +With mysql version: +``` +DATABASE_URL="mysql://username:password@server.com:3306/dbname?serverVersion=5.7.21" +``` ---