Can't connect to database

select * from g4_domain where userid = TRIM('jung') and Stype='9'

1045 : Access denied for user 'root'@'localhost' (using password: NO)

error file : /index.php