简体   繁体   中英

I am trying to migrate the table I have created but I keep getting an error that my database is unknown.I use XAMPP 3.3

SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = 'BASE TABLE')

found this somewhere and it was helpful

The DB_USERNAME should be set to root if you do not have a default username

If no password is set on the database, clear it DB_PASSWORD

After completion of.env edit must be clear cache: php artisan config:cache

After Run the migrate Artisan command: php artisan migrate

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM