Hi @ketrab2004, Please I have been trying to connect my laravel work to an external database(mySQL) just as you suggested, I setup my database credentials on the .env file, but generated this error when I run php artisan migrate or php artisan serve:
SQLSTATE[HY000] [2002] Connection timed out (SQL: select * from information_schema.tables where table_schema = shopifyinventoryapp and table_name = migrations and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:742
738▕ // If an exception occurs when attempting to run a query, we'll format the error
739▕ // message to include the bindings with SQL, which will make this exception a
740▕ // lot more helpful to the developer instead of just the database's errors.
741▕ catch (Exception $e) {
➜ 742▕ throw new QueryException(
743▕ $query, $this->prepareBindings($bindings), $e
744▕ );
745▕ }
746▕ }
37 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Pls do you have a way around this ? I'll be looking forward.