How to connect to mysql database?

ERROR 1045 (28000): Access denied for user ‘app’@‘localhost’ (using password: NO)

how do i know username and password?

By changing it if you’re using another project to host