[Solved] ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost:3306' (10061)
Updated: 23th March 2025Tags: mysql windows
[postgresql only] Fix users table’ autoincrement
select setval('users_id_seq', coalesce(
(select max(id)+1 from users), 1), false)
[postgresql only] Manually set next autoincrement id of users table to 100:
setval('users_id_seq', 100)
There are few important differences:
# | Insert | Create |
---|---|---|
Respects fillable / guarded | No | Yes |
Creates timestamps | No | Yes |
Returns created object | No | Yes |
Runs booted method | No | Yes |
Allows multi insert | Yes | No |
If you changed superviser config, or add new program to it, you need to restart it.
sudo supervisorctl stop all
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "laravel-worker:*"
php artisan about
It will show laravel version with bunch of other usefull information.
Add whole directory of your app to windows defender Exclusions. You can also move your projects in project directory and add projects to exclusion.
Please, use integer as cents, don’t do my mistake, if you are using PHP.
I was shocked when discovered that php is using float and doesn’t have decimal. I have a lot of code already done, so I used bcmath to get around, but if I had known this earlier, I would have used integers.