504 gateway error while importing sql database

I am trying to import sql database but getting this error.

Screenshot_1

This file is exported from ee v3 and same is not getting imported in ee v4

Have increased max_execution_time to 300 but still no success.