Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 34
Trades: 0
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
 
 
Register now for full access!
Old 07-03-2004, 02:11 PM
johanesw's Avatar
Extreme Talker

Posts: 174
Location: If I told you that, I'm afraid I'd have to kill you!
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
johanesw is offline
Reply With Quote
View Public Profile Visit johanesw's homepage!
 
Old 07-04-2004, 02:04 AM I finally figured out the problem
Experienced Talker

Posts: 34
Trades: 0
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, 12:22 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.21521 seconds with 12 queries