Warning: mysqli::__construct(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: YES) This is the problem im dealing with

enter image description here

this is my code. when i remove the numbers inside the password the program runs just fine. is it okay to leave it without a password?