if you have installed mysql, the first step you should take is to setup the default root password, otherwise, anyone will be able to access your database. so this is a good security way to prevent unauthorized users to access any database. so this is the command you should sed from the shell in linux:

mysqladmin -u root password