How to connect to MySql

hi, i have a stupid question, but how to connect to mysql?

e.g. on bplaced im named michat34.
i have created a database ‘michat34_ikariam’.

so how should my code look like?

mysql_connect(‘’, ‘michat34_ikariam’, ‘PASSWORD’);

its propably incorrect because throws some kind of error.
so how should right code look like? greetings


Use localhost for the server and not :wink:

thanks, it works. and this is strange O.o shouldn’t be really the name of server my domain not localhost? could you explain me how does it work?

The MySQL Server is running at the same system as the web and FTP (etc) server.

thanks :wink: