0

I am using Linux for web development for the first time. I am developing an application using Laravel (and XAMPP) and I had no trouble doing so on Windows.

This time, however, whenever I run the php artisan command to refresh my database I get an error that Artisan can't connect to the database.

Artisan error

I realized that he's trying to access Ubuntu's MySQL databse instead of XAMPP's database. That's probably because I am using the global php command instead of running XAMPP's php command (which I used on Windows). I am positive that the .env file and the database configuration file point to the correct database.

Is there a way to make Artisan work with XAMPP's php command? Please remember that I have a very limited Linux knowledge.

Thank you.

1 Answer 1

1

You should terminate Ubuntu's MySQL server, google how to do this, and then you can start your xampp mysql server with xampp controller.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.