without using my config/database.php in mysql connection.
to use my config/newdatabase.php in newsql connection.
example command such as blow.
php artisan migrate database=newsql
Thanks.
without using my config/database.php in mysql connection.
to use my config/newdatabase.php in newsql connection.
example command such as blow.
php artisan migrate database=newsql
Thanks.
It would be better to define a new .env file instead of a second config file with database info. Laravel just won't recognize the second config file, it'll be troublesome.
Create a file called
.env.newsettings
, update your database settings, than run:php artisan migrate --env=newsettings