0

I have a computer where I program and a server where I upload my project automaticly.

I added a command that does a function that uses a function that does some SQL. Since I use that, I cannot use php artisan on my computer anymore, but it still works on my server. I already confirmed that it is the custom command because php artisan still works after I comment it out. I get this error:

[Illuminate\Database\QueryException] SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. (SQL select * from "somewhere where "something" = 0)

Of course the computer where I program hasn't any database running.

I would like to still be able to use php artisan on my computer. Any suggestions?

1 Answer 1

1

if you connect to database in a server not in your computer, you must add your IP in cPanel to can connect.

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.