djemyjenab you can try using 127.0.0.1
as the database host.
If that doesn't help, there might be something wrong with your database server. Check it's correctly turned on, that the credentials are correct and maybe whether there's any XAMPP update available. Do you have other apps on the same computer that use MySQL?