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 > cannot create a new database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-09, 22:07
ladson4 ladson4 is offline
Registered User
 
Join Date: Dec 2009
Posts: 1
cannot create a new database

I am a newbie using mySQL on unix (Mac OS/X). I have done simple operations, such as CREATE DATABASE, CREATE TABLE, SELECT, etc, but suddenly I find that I cannot do update operations, such as CREATE DATABASE.

Here is my results.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
+--------------------+

mysql> create database ladsondb;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'ladsondb'

mysql> grant ALL on *.* to richardladson@'localhost';
ERROR 1045 (28000): Access denied for user ''@'localhost' (using password: NO)

I suspect this is a basic problem, but it is a show-stopper for me.
Reply With Quote
  #2 (permalink)  
Old 12-21-09, 01:44
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
Yup looks like a permissions problem to me
if you GRANTed permisions on the command line client, did you FLUSH PRIVILEGES afterwards. Mind you I'd also want to check the syntax of the grant statement you used

An alternative way of setting permissions is to use MySQL Adminsitrator which is part of the MySQL GUI tools from MySQL.

mind you I'd also want to check the syntax of the grant statement you used
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
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