Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Where is my laravel 5 database?

Hi there,

I have built an awesome micro booking application based on Hampton Paulik's 'Todo Lists' program featured in the two Laravel 4 courses (I completed both courses).

I want to deploy the application to a standard web server (Easyspace).

So far I have transferred all the files over to a folder that exists on the live server with FileZilla.

I am now looking for the database, so that I can import it into to my web server's php myadmin.

I can't find it. Would anyone know where it might be?

I have my Laravel application running locally using Vagrant, inside of the homestead virtual machine. It exists in a directory located at 'C:\Users\Rob\Homestead\Projects\bookings'.

Many thanks in advance,

Robert London, UK

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Robert,

If you're using Homestead you can connect to your database via software such as MySQL Workbench on Windows or Sequel Pro on OS X, have a read through the details in the link below which explain which IP and port to use.

https://laravel.com/docs/5.1/homestead#connecting-to-databases

Happy coding!

Apparently its in a directory called /var/lib/mysql, but I'm not sure where this is?