Here is how i run Laravel migration on my PC
First when i run php artisan migrate, i get database not found error. I created a database, after that migrate command works properly.Code:boby@fwhlin:~/www/imagehostnow.com (master)$ php artisan migrate [PDOException] SQLSTATE[42000] [1049] Unknown database 'imagehostnow' migrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--package[="..."]] [--pretend] [--seed] boby@fwhlin:~/www/imagehostnow.com (master)$ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.5.40-0ubuntu0.14.04.1 (Ubuntu) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database imagehostnow; Query OK, 1 row affected (0.00 sec) mysql> Bye boby@fwhlin:~/www/imagehostnow.com (master)$ php artisan migrate Migration table created successfully. Migrated: 2015_01_05_044852_create_table_users Migrated: 2015_01_06_090738_create_table_images Migrated: 2015_01_09_084809_add_type_in_images Migrated: 2015_01_10_040524_add_default_image_privacy_in_users Migrated: 2015_01_10_062030_create_settings Migrated: 2015_01_13_053228_create_spam_reports boby@fwhlin:~/www/imagehostnow.com (master)$




Reply With Quote
Bookmarks