My sql problem

hello i have an online database within my host.

now in my sql script the following lines are there but while installing the database won’t reconice the code so some data is not vissible, i can’t login and so on… (on the website at the admin pages) is it because of the code or because of the online database… Please someone help me…

the code is:

grant select, insert, update, delete
on databasename.*
to username@localhost identified by ‘password’;

(localhost is the name of the host to fill in)