php - Artisan is trying to use the Ubuntu MySQL database instead of XAMPP's -


i using linux web development first time. developing application using laravel (and xampp) , had no trouble doing on windows.

this time, however, whenever run php artisan command refresh database error artisan can't connect database.

artisan error

i realized he's trying access ubuntu's mysql databse instead of xampp's database. that's because using global php command instead of running xampp's php command (which used on windows). positive .env file , database configuration file point correct database.

is there way make artisan work xampp's php command? please remember have limited linux knowledge.

thank you.

you should terminate ubuntu's mysql server, google how this, , can start xampp mysql server xampp controller.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -