Hi, I am novice in PHP & Mysql. I am facing a problem when I put a command in Mysql the
following error is showng. Please help me to solve this problem.

Mysql> create database xx;

ERROR 1044(42000):Access denied for user ' '@localhost' to database 'xx'

Thanks
Susanta

i guess you are using Anonymous user to connect

Login with any valid user who has create permissions
check if xx database already exists

if nothing works login with root user and see if the error still exists

if that too didn't work
post your Mysql version and connection string

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.