If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to create database from remote client?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-04, 10:55
jin007 jin007 is offline
Registered User
 
Join Date: Jan 2004
Location: Chicago
Posts: 54
How to create database from remote client?

I am using mySQL client to access mysql on another box. I cannot create database:

mysql> create database db1;
ERROR 1044: Access denied for user: 'scott@192.168.0.127' to database 'db1'

User 'scott@192.168.0.127' can perform other tasks except creating a database. Why?
Do I have to use the server box to grant scott authority for db1 which does not exist yet?
Thanks!
Reply With Quote
  #2 (permalink)  
Old 05-12-04, 12:41
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
You likely need to grant create privileges for this user before a new database can be made.
Reply With Quote
  #3 (permalink)  
Old 05-12-04, 14:32
jin007 jin007 is offline
Registered User
 
Join Date: Jan 2004
Location: Chicago
Posts: 54
Thanks.
I did a grant all privileges on *.* and now it works.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On