0

actually I am working on the laravel 5.4 application. Actually the main problem is that whenever I click on the button of the application [admin dashboard] for example (view employe details) then after a little browsing xampp MySQL automatically turns off. I have traced this error but got no results yet.

here you can see the image

after a lot of loading page, it shows ( this site can't be reached ) although the same code with the same DB is working fine on my co-worker laptop. The code and routes are working perfectly.

http://localhost:82/carehalo_mini/public/view_employess (this is route example. Hope you got my point

  • Probably this is related to Xampp not your code, check "logs" of Mysql, the summary of error log in the screenshot you shard says that you might have a port blocked ( possibly by another app) – Siba Al May 06 '20 at 09:58
  • This might be because the port is blocked by some other program. To confirm, you can check the error logs. – Saroj Shrestha May 06 '20 at 10:02
  • The error above happens when you try to insert two rows with the same 'id', leave 'id' field empty, it will be incremented automatically. But I don't think this error is causing Mysql to shut down – Siba Al May 06 '20 at 10:03
  • Thanks for the fast reply. Actually, it say says delete the ibtmp1 file in the xampp SQL folder. I have tried it yesterday but that's also never worked for me. Secondly, I have also changed the port number multiple times no results at all. – Mujtaba Hussain May 06 '20 at 10:06
  • Try : `netstat -na | find "3306"` – Sachin Bahukhandi May 06 '20 at 10:08
  • https://serverfault.com/questions/26564/how-to-check-if-a-port-is-blocked-on-a-windows-machine – Sachin Bahukhandi May 06 '20 at 10:11
  • 1
    This thread has suggested solutions, check it out https://stackoverflow.com/questions/18022809/xampp-mysql-shutdown-unexpectedly – Siba Al May 06 '20 at 10:12
  • thanks a lot everyone for the contribution. – Mujtaba Hussain May 06 '20 at 10:41

0 Answers0