Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Database denied

Status
Not open for further replies.

ama299

IS-IT--Management
Jan 3, 2002
67
US
Hello

I have a simple question I think

on my local machine I go and type in

mysqladmin create databasename

I get this


C:\mysql\bin>mysqladmin create phpwebsite
mysqladmin: CREATE DATABASE failed; error: 'Access denied for user: '@localhost'
to database 'phpwebsite''

what is wrong I reinstalled and uninstalled a couple of times.

 
It looks to me like you're going to have to give mysqladmin some user credentials to pass to MySQL.

mysqladmin -u <username> -p

Will tell mysqladmin to connect to MySQL with the username specified and to ask for a password.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top