Mysql works Ok in php, but I cannot get it to work from a command line (does not connect to the dbase)

if "create database ahmed"

this msg says "ERROR 1044: Access denied for user: '@%' to database 'ahmed'