O'Reilly logo

Learning Laravel 4 Application Development by Hardik Dangar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a database in the production site and uploading your local database on the production site

To upload your database, you would need to create a database in your web server. For shared hosts, there will be database options in your web panel (cPanel) where you can create your database and database user. For Virtual Private Server (VPS) or dedicated servers, you can create a new database and upload it by either installing phpMyAdmin or Adminer or directly MySQL command line if you are good with MySQL commands.

Now if you have the command line access to your server, you can use Laravel's artisan to import your database via the following command:

$ php artisan migrate

If you don't have access to command line, you will need to upload the database ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required