Its possible to copy/access a database in one domain to/from another?

Avatar
  • updated
  • Answered

Its possible to copy/access a database in one domain to/from another?

I need to move a Laravel app from one domain to another and will lose access to the database of the default app in that domain.

Its possible to access the database X of domain A.COM from another domain ??

Wich Mysql server/host and user/password I must provide ?

How would you rate the customer service you received?

Satisfaction mark by franzag 4 years ago

Add a comment about quality of support you received (optional):

Avatar
anonymous
  • Answered

Hi Franzag, 

Thank you so much for your question on how to access a database from another domain. First, make sure to complete a backup of your database and download it before making changes. You have two choices:

  • You can connect your new installation of Laravel to the same database by altering the config file, or
  • You can copy the old database to a new database created with the new installation of Laravel.

Here is the Laravel documentation for further review. 

Please let us know if you have additional questions. 

Kindest regards,
Stormy