MySQL connection with temporal

I have setup mysql 5.7 as per the documentation .Not able to execute with default schema upgrade: and visibility schema upgrade: .The error is
./temporal-sql-tool -u temporal --pw temporal --db temporal_visibility update-schema -d ./schema/mysql/v57/visibility/versioned
2021/05/17 19:12:39 Error 1045: Access denied for user ‘temporal’@‘localhost’ (using password: YES)

are you trying to setup without using docker? if so, take a look at