Access Denied or Http Error 500

Hi, i just created a Database and a Table here and a simple php file.
When i go to it says “Site dont working” Http Error 500
When i go to it says “Access denied for user”

the same script works fine at at a database here (other website from a friend)

For the HTTP ERROR 500:
For the Access Denied error: you’re not using the right password. You need to use the control panel password you can find in your client area.