Reply
giving user rights to create a database
Old 07-03-2004, 10:07 AM giving user rights to create a database
Experienced Talker

Posts: 34
I am unable to ceate a database I get the following error

mysqladmin: CREATE DATABASE failed; error: 'Access denied for user: '@localhost'
to database 'testdb''

How can I give this account rights to create a datatbase


Microsoft Windows [Version 5.2.3790]

C:\Documents and Settings\Cedric>cd\

C:\>cd mysql

C:\mysql>cd bin

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

C:\mysql\bin>winmysqladmin

C:\mysql\bin>
cedtech23 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-03-2004, 01:11 PM
johanesw's Avatar
Extreme Talker

Posts: 174
Location: If I told you that, I'm afraid I'd have to kill you!
Why won't you download MySql Control Center from http://dev.mysql.com/downloads/mysqlcc.html. Install it. Then, Open it, right click on localhost or whatever your server name is, and click edit. Change the parameters into root and connect. Then go to User Administration -> double click the user name, and you can change their priviliges here. It saves time than entering commands from the command line...

I hope this helps
johanesw is offline
Reply With Quote
View Public Profile Visit johanesw's homepage!
 
Old 07-04-2004, 01:04 AM I finally figured out the problem
Experienced Talker

Posts: 34
The is that I am having is when I do the following

cd mysql/bin/

the default user of @localhost is used and ths user has no rights. I created a user call cedric how do I switch to that user??
cedtech23 is offline
Reply With Quote
View Public Profile
 
Old 07-04-2004, 11:22 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
If you want to operate as that user from within a PHP script, then pass that username and password. Most control panels (such as MySQL Ctrl Ctr and phpMyAdmin) operate as the admin user. To change that would require probably editing the respective configuration files to determine which login credentials are passed.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Reply     « Reply to giving user rights to create a database
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13937 seconds with 12 queries