jeudi 29 octobre 2015

can't run migrate:install in laravel5

i have laravel 5 and it works fine on browser.After then for making table in database, firstly i have create directory i.e /opt/lampp/htdocs/laravel, then run php artisan migrate:install command but i have got message shown below. How to solve this problem.

cd /opt/lampp/htdocs/lovey

/opt/lampp/htdocs/lovey$ php artisan migrate:install


  • Application In Production! *


    Do you really wish to run this command? [y/N] (yes/no) [no]:

HERE IS MY database.php file. my database name is laravel.

return [ 'fetch' => PDO::FETCH_CLASS,

'default' => env('DB_CONNECTION', 'mysql'),


'connections' => [

    'sqlite' => [
        'driver'   => 'sqlite',
        'database' => database_path('database.sqlite'),
        'prefix'   => '',
    ],

    'mysql' => [
        'driver'    => 'mysql',
        'host'      => env('DB_HOST', 'localhost'),
        'database'  => env('DB_DATABASE', 'laravel'),
        'username'  => env('DB_USERNAME', 'root'),
        'password'  => env('DB_PASSWORD', ''),
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
        'strict'    => false,
    ],

    'pgsql' => [
        'driver'   => 'pgsql',
        'host'     => env('DB_HOST', 'localhost'),
        'database' => env('DB_DATABASE', 'database'),
        'username' => env('DB_USERNAME', 'root'),
        'password' => env('DB_PASSWORD', ''),
        'charset'  => 'utf8',
        'prefix'   => '',
        'schema'   => 'public',
    ],

    'sqlsrv' => [
        'driver'   => 'sqlsrv',
        'host'     => env('DB_HOST', 'localhost'),
        'database' => env('DB_DATABASE', 'database'),
        'username' => env('DB_USERNAME', 'root'),
        'password' => env('DB_PASSWORD', ''),
        'charset'  => 'utf8',
        'prefix'   => '',
    ],

],



'migrations' => 'migrations',



'redis' => [

    'cluster' => false,

    'default' => [
        'host'     => '127.0.0.1',
        'port'     => 6379,
        'database' => 0,
    ],

],

];



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire