how to set a password for database on xampp code example
Example: set mysql password xampp
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('pass');
FLUSH PRIVILEGES;
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('pass');
FLUSH PRIVILEGES;