mysql shutdown. unexpected error


Error: MySQL shutdown unexpectedly.


MySQL shutdown unexpectedly or MySQL server not working properly

exit Xampp server
go to your C:\xampp\mysql\data directory
delete the ibdata1 file
restart xampp server

How To Slove the Mysql extension is Deprecated ? and What is Deprecated Error?

After PHP5 version updated mysql_connect() is updated with Mysqi_Connect().

if you used old version of MYSQL_CONNECT() for database it shows Deprecated Error
For Example

CODE FOR CONNECT in old version

CODE FOR CONNECT in new version

Its look all database name also in same fields

Fast and Easy Solution
Suppress all deprecated warnings including them from mysql_*:

Insert this code in the top of the php page.
If you have further questions: Just left them below in the comments
Enjoy Easy Coding