samedi 28 novembre 2015

php artisan migrate isn't working

When I try to connect to my database i get this error

[PDOException]                                                               
SQLSTATE[HY000] [1045] Access denied for user 'loom'@'localhost' (using password: YES)

all my credentials are correct and when i change things up i get this error :

[PDOException]                                        
SQLSTATE[HY000] [1049] Unknown database 'loomcoding'

Can anyone help me sort this out please

my .env file

APP_ENV=local
APP_DEBUG=true
APP_KEY=xxxx

DB_HOST=localhost
DB_DATABASE=cl20-loom
DB_USERNAME=loom
DB_PASSWORD=xxxx

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

my database.php file :

'mysql' => [
        'driver'    => 'mysql',
        'host'      => 'localhost',
        'database'  => 'cl-loom',
        'username'  => 'loom',
        'password'  => '••••',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
        'strict'    => false,
    ],



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/21lAwwz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire