Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 787 Bytes

File metadata and controls

26 lines (15 loc) · 787 Bytes

MySQLdotEnv

Software License

When you work with Symfony and got tired of checking database user/pass in env files just to connect to mysql on test servers...

This bash script will search for provided env file in given location and try to connect to mysql database using DATABASE_URL= connection string.

Remember: DO NOT USE THIS SCRIPT ON PRODUCTION SERVERS! DO NOT PUT THIS SCRIPT INSIDE WEB FOLDERS!

Usage

./mysql-dotenv.sh ./path-to/your.dotenv-file/.env

Credits

License

The MIT License (MIT). Please see License File for more information.