Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:35 AM
untz
 
Posts: n/a
Default Access Denied When Trying to Create Database

Hello there,

I am using MySQL 5 on OS X Tiger...

After starting the server, I tried to create a sample database and
this is what what happened:

$ mysql -u untz -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.16-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

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

What could I be possibly be doing wrong?

Many, many thanks,

untz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:35 AM
Baron Schwartz
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

Hi untz,

untz wrote:
> Hello there,
>
> I am using MySQL 5 on OS X Tiger...
>
> After starting the server, I tried to create a sample database and this
> is what what happened:
>
> $ mysql -u untz -p
> Enter password:
> Welcome to the MySQL monitor. Commands end with ; or \g.
> Your MySQL connection id is 4 to server version: 5.0.16-standard
>
> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>
> mysql> create database people_development;
> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
> database 'people_development'
> mysql>


Try running SHOW GRANTS while logged in, and see what privileges you have. You
probably need to grant your user some additional privileges.

Cheers
Baron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 06:35 AM
untz
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

Baron & Prathima,

Thank for the information!

What happened is that I hadn't used MySQL for a long time and looked
up on the Internet on how to change my root and individual users'
passwords.

The last command the URL had me type was "flush privileges;" and once
I did that, I think it created a problem for everything else.

Here's what I got when I ran SHOW GRANTS:

mysql> show GRANTS;
+-----------------------------------------------------------------------
--------------------------------------+
| Grants for
untz@localhost
|
+-----------------------------------------------------------------------
--------------------------------------+
| GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
'*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
| GRANT ALL PRIVILEGES ON `depot_development`.* TO 'untz'@'localhost'
| GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
| GRANT ALL PRIVILEGES ON `depot_production`.* TO 'untz'@'localhost'
| GRANT ALL PRIVILEGES ON `music_development`.* TO 'untz'@'localhost'
| GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
| GRANT ALL PRIVILEGES ON `music_production`.* TO 'untz'@'localhost'
+-----------------------------------------------------------------------
--------------------------------------+
7 rows in set (0.00 sec)

What am I supposed to do? I can not run queries or even create tables...

I also tried using a MySQL client (CocoaMySQL) and it displayed the
same error as in the previous e-mail (see below).

Am really stuck on this so any help, suggestions, etc. would be
greatly appreciated!

Sincerely yours,

untz

On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:

> Hi untz,
>
> untz wrote:
>> Hello there,
>> I am using MySQL 5 on OS X Tiger...
>> After starting the server, I tried to create a sample database and
>> this is what what happened:
>> $ mysql -u untz -p
>> Enter password:
>> Welcome to the MySQL monitor. Commands end with ; or \g.
>> Your MySQL connection id is 4 to server version: 5.0.16-standard
>> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>> mysql> create database people_development;
>> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
>> database 'people_development'
>> mysql>

>
> Try running SHOW GRANTS while logged in, and see what privileges
> you have. You probably need to grant your user some additional
> privileges.
>
> Cheers
> Baron
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?
> unsub=untz786@yahoo.com
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 06:35 AM
Ananda Kumar
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

Is this a user "untz" going to do even the "create procedure", if yes then
you need to grant "super" previliege to this user.

grant super on *.* to 'untz'@'localhost' identified by 'password';

regards
anandkl

On 6/11/07, untz <untz786@yahoo.com> wrote:
>
> Baron & Prathima,
>
> Thank for the information!
>
> What happened is that I hadn't used MySQL for a long time and looked
> up on the Internet on how to change my root and individual users'
> passwords.
>
> The last command the URL had me type was "flush privileges;" and once
> I did that, I think it created a problem for everything else.
>
> Here's what I got when I ran SHOW GRANTS:
>
> mysql> show GRANTS;
> +-----------------------------------------------------------------------
> --------------------------------------+
> | Grants for
> untz@localhost
> |
> +-----------------------------------------------------------------------
> --------------------------------------+
> | GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
> '*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
> | GRANT ALL PRIVILEGES ON `depot_development`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `depot_production`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `music_development`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `music_production`.* TO 'untz'@'localhost'
> +-----------------------------------------------------------------------
> --------------------------------------+
> 7 rows in set (0.00 sec)
>
> What am I supposed to do? I can not run queries or even create tables...
>
> I also tried using a MySQL client (CocoaMySQL) and it displayed the
> same error as in the previous e-mail (see below).
>
> Am really stuck on this so any help, suggestions, etc. would be
> greatly appreciated!
>
> Sincerely yours,
>
> untz
>
> On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:
>
> > Hi untz,
> >
> > untz wrote:
> >> Hello there,
> >> I am using MySQL 5 on OS X Tiger...
> >> After starting the server, I tried to create a sample database and
> >> this is what what happened:
> >> $ mysql -u untz -p
> >> Enter password:
> >> Welcome to the MySQL monitor. Commands end with ; or \g.
> >> Your MySQL connection id is 4 to server version: 5.0.16-standard
> >> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
> >> mysql> create database people_development;
> >> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
> >> database 'people_development'
> >> mysql>

> >
> > Try running SHOW GRANTS while logged in, and see what privileges
> > you have. You probably need to grant your user some additional
> > privileges.
> >
> > Cheers
> > Baron
> >
> > --
> > MySQL General Mailing List
> > For list archives: http://lists.mysql.com/mysql
> > To unsubscribe: http://lists.mysql.com/mysql?
> > unsub=untz786@yahoo.com
> >

>
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=anandkl@gmail.com
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 06:35 AM
Baron Schwartz
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

Hi,

I think you need to log in as root and grant yourself some privileges then. If you
have lost the root password or root doesn't have privileges anymore either, there is a
chapter in the manual on how to do this: http://dev.mysql.com/

Cheers
Baron

untz wrote:
> Baron & Prathima,
>
> Thank for the information!
>
> What happened is that I hadn't used MySQL for a long time and looked up
> on the Internet on how to change my root and individual users' passwords.
>
> The last command the URL had me type was "flush privileges;" and once I
> did that, I think it created a problem for everything else.
>
> Here's what I got when I ran SHOW GRANTS:
>
> mysql> show GRANTS;
> +-------------------------------------------------------------------------------------------------------------+
>
> | Grants for
> untz@localhost
> |
> +-------------------------------------------------------------------------------------------------------------+
>
> | GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
> '*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
> | GRANT ALL PRIVILEGES ON `depot_development`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `depot_production`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `music_development`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
> | GRANT ALL PRIVILEGES ON `music_production`.* TO 'untz'@'localhost'
> +-------------------------------------------------------------------------------------------------------------+
>
> 7 rows in set (0.00 sec)
>
> What am I supposed to do? I can not run queries or even create tables...
>
> I also tried using a MySQL client (CocoaMySQL) and it displayed the same
> error as in the previous e-mail (see below).
>
> Am really stuck on this so any help, suggestions, etc. would be greatly
> appreciated!
>
> Sincerely yours,
>
> untz
>
> On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:
>
>> Hi untz,
>>
>> untz wrote:
>>> Hello there,
>>> I am using MySQL 5 on OS X Tiger...
>>> After starting the server, I tried to create a sample database and
>>> this is what what happened:
>>> $ mysql -u untz -p
>>> Enter password:
>>> Welcome to the MySQL monitor. Commands end with ; or \g.
>>> Your MySQL connection id is 4 to server version: 5.0.16-standard
>>> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>>> mysql> create database people_development;
>>> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
>>> database 'people_development'
>>> mysql>

>>
>> Try running SHOW GRANTS while logged in, and see what privileges you
>> have. You probably need to grant your user some additional privileges.
>>
>> Cheers
>> Baron
>>
>> --MySQL General Mailing List
>> For list archives: http://lists.mysql.com/mysql
>> To unsubscribe: http://lists.mysql.com/mysql?unsub=untz786@yahoo.com
>>

>
>
> --MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=baron@xaprb.com
>


--
Baron Schwartz
http://www.xaprb.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 06:35 AM
untz
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

Ananda,

Thank you for responding!

I just tried this and got the following:

mysql> grant super *.* to 'untz'@'localhost' identified by 'password';
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near '*.* to untz@localhost identified by password' at
line 1

Can anyone please help me?

I am not a DBA....

Kindest regards,

untz

On Jun 11, 2007, at 4:36 AM, Ananda Kumar wrote:

> Is this a user "untz" going to do even the "create procedure", if
> yes then
> you need to grant "super" previliege to this user.
>
> grant super on *.* to 'untz'@'localhost' identified by 'password';
>
> regards
> anandkl
>
> On 6/11/07, untz <untz786@yahoo.com> wrote:
>>
>> Baron & Prathima,
>>
>> Thank for the information!
>>
>> What happened is that I hadn't used MySQL for a long time and looked
>> up on the Internet on how to change my root and individual users'
>> passwords.
>>
>> The last command the URL had me type was "flush privileges;" and once
>> I did that, I think it created a problem for everything else.
>>
>> Here's what I got when I ran SHOW GRANTS:
>>
>> mysql> show GRANTS;
>> +--------------------------------------------------------------------
>> ---
>> --------------------------------------+
>> | Grants for
>> untz@localhost
>> |
>> +--------------------------------------------------------------------
>> ---
>> --------------------------------------+
>> | GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
>> '*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
>> | GRANT ALL PRIVILEGES ON `depot_development`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `depot_production`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `music_development`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `music_production`.* TO 'untz'@'localhost'
>> +--------------------------------------------------------------------
>> ---
>> --------------------------------------+
>> 7 rows in set (0.00 sec)
>>
>> What am I supposed to do? I can not run queries or even create
>> tables...
>>
>> I also tried using a MySQL client (CocoaMySQL) and it displayed the
>> same error as in the previous e-mail (see below).
>>
>> Am really stuck on this so any help, suggestions, etc. would be
>> greatly appreciated!
>>
>> Sincerely yours,
>>
>> untz
>>
>> On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:
>>
>> > Hi untz,
>> >
>> > untz wrote:
>> >> Hello there,
>> >> I am using MySQL 5 on OS X Tiger...
>> >> After starting the server, I tried to create a sample database and
>> >> this is what what happened:
>> >> $ mysql -u untz -p
>> >> Enter password:
>> >> Welcome to the MySQL monitor. Commands end with ; or \g.
>> >> Your MySQL connection id is 4 to server version: 5.0.16-standard
>> >> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>> >> mysql> create database people_development;
>> >> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
>> >> database 'people_development'
>> >> mysql>
>> >
>> > Try running SHOW GRANTS while logged in, and see what privileges
>> > you have. You probably need to grant your user some additional
>> > privileges.
>> >
>> > Cheers
>> > Baron
>> >
>> > --
>> > MySQL General Mailing List
>> > For list archives: http://lists.mysql.com/mysql
>> > To unsubscribe: http://lists.mysql.com/mysql?
>> > unsub=untz786@yahoo.com
>> >

>>
>>
>> --
>> MySQL General Mailing List
>> For list archives: http://lists.mysql.com/mysql
>> To unsubscribe: http://lists.mysql.com/mysql?
>> unsub=anandkl@gmail.com
>>
>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 06:35 AM
untz
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

Gerald,

I tried this and still got an error!

mysql> grant all privileges on *.* to 'untz'@'localhost' identified
by 'maddog';
ERROR 1045 (28000): Access denied for user 'untz'@'localhost' (using
password: YES)
mysql>

Can anyone please help me? I am unable to use MySQL at all, at this
point...

-untz


On Jun 11, 2007, at 1:06 PM, Gerald L. Clark wrote:

> untz wrote:
>> Ananda,
>> Thank you for responding!
>> I just tried this and got the following:
>> mysql> grant super *.* to 'untz'@'localhost' identified by
>> 'password';
>> ERROR 1064 (42000): You have an error in your SQL syntax; check
>> the manual that corresponds to your MySQL server version for the
>> right syntax to use near '*.* to untz@localhost identified by
>> password' at line 1
>> Can anyone please help me?
>> I am not a DBA....
>> Kindest regards,
>> untz
>> On Jun 11, 2007, at 4:36 AM, Ananda Kumar wrote:
>>> Is this a user "untz" going to do even the "create procedure",
>>> if yes then
>>> you need to grant "super" previliege to this user.
>>>
>>> grant super on *.* to 'untz'@'localhost' identified by 'password';
>>>
>>> regards
>>> anandkl
>>>
>>> On 6/11/07, untz <untz786@yahoo.com> wrote:
>>>
>>>>
>>>> Baron & Prathima,
>>>>
>>>> Thank for the information!
>>>>
>>>> What happened is that I hadn't used MySQL for a long time and
>>>> looked
>>>> up on the Internet on how to change my root and individual users'
>>>> passwords.
>>>>
>>>> The last command the URL had me type was "flush privileges;" and
>>>> once
>>>> I did that, I think it created a problem for everything else.
>>>>
>>>> Here's what I got when I ran SHOW GRANTS:
>>>>
>>>> mysql> show GRANTS;
>>>> +------------------------------------------------------------------
>>>> -- ---
>>>> --------------------------------------+
>>>> | Grants for
>>>> untz@localhost
>>>> |
>>>> +------------------------------------------------------------------
>>>> -- ---
>>>> --------------------------------------+
>>>> | GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
>>>> '*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
>>>> | GRANT ALL PRIVILEGES ON `depot_development`.* TO
>>>> 'untz'@'localhost'
>>>> | GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
>>>> | GRANT ALL PRIVILEGES ON `depot_production`.* TO
>>>> 'untz'@'localhost'
>>>> | GRANT ALL PRIVILEGES ON `music_development`.* TO
>>>> 'untz'@'localhost'
>>>> | GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
>>>> | GRANT ALL PRIVILEGES ON `music_production`.* TO
>>>> 'untz'@'localhost'
>>>> +------------------------------------------------------------------
>>>> -- ---
>>>> --------------------------------------+
>>>> 7 rows in set (0.00 sec)
>>>>
>>>> What am I supposed to do? I can not run queries or even create
>>>> tables...
>>>>
>>>> I also tried using a MySQL client (CocoaMySQL) and it displayed the
>>>> same error as in the previous e-mail (see below).
>>>>
>>>> Am really stuck on this so any help, suggestions, etc. would be
>>>> greatly appreciated!
>>>>
>>>> Sincerely yours,
>>>>
>>>> untz
>>>>
>>>> On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:
>>>>
>>>> > Hi untz,
>>>> >
>>>> > untz wrote:
>>>> >> Hello there,
>>>> >> I am using MySQL 5 on OS X Tiger...
>>>> >> After starting the server, I tried to create a sample
>>>> database and
>>>> >> this is what what happened:
>>>> >> $ mysql -u untz -p
>>>> >> Enter password:
>>>> >> Welcome to the MySQL monitor. Commands end with ; or \g.
>>>> >> Your MySQL connection id is 4 to server version: 5.0.16-standard
>>>> >> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>>>> >> mysql> create database people_development;
>>>> >> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
>>>> >> database 'people_development'
>>>> >> mysql>
>>>> >
>>>> > Try running SHOW GRANTS while logged in, and see what privileges
>>>> > you have. You probably need to grant your user some additional
>>>> > privileges.
>>>> >
>>>> > Cheers
>>>> > Baron
>>>> >
>>>> > --
>>>> > MySQL General Mailing List
>>>> > For list archives: http://lists.mysql.com/mysql
>>>> > To unsubscribe: http://lists.mysql.com/mysql?
>>>> > unsub=untz786@yahoo.com
>>>> >
>>>>
>>>>
>>>> --
>>>> MySQL General Mailing List
>>>> For list archives: http://lists.mysql.com/mysql
>>>> To unsubscribe: http://lists.mysql.com/mysql?
>>>> unsub=anandkl@gmail.com
>>>>
>>>>

> The show grants you ran shows you the proper syntax.
>
> --
> Gerald L. Clark
> Supplier Systems Corporation


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-28-2008, 06:35 AM
Gerald L. Clark
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

untz wrote:
> Ananda,
>
> Thank you for responding!
>
> I just tried this and got the following:
>
> mysql> grant super *.* to 'untz'@'localhost' identified by 'password';
> ERROR 1064 (42000): You have an error in your SQL syntax; check the
> manual that corresponds to your MySQL server version for the right
> syntax to use near '*.* to untz@localhost identified by password' at
> line 1
>
> Can anyone please help me?
>
> I am not a DBA....
>
> Kindest regards,
>
> untz
>
> On Jun 11, 2007, at 4:36 AM, Ananda Kumar wrote:
>
>> Is this a user "untz" going to do even the "create procedure", if yes
>> then
>> you need to grant "super" previliege to this user.
>>
>> grant super on *.* to 'untz'@'localhost' identified by 'password';
>>
>> regards
>> anandkl
>>
>> On 6/11/07, untz <untz786@yahoo.com> wrote:
>>
>>>
>>> Baron & Prathima,
>>>
>>> Thank for the information!
>>>
>>> What happened is that I hadn't used MySQL for a long time and looked
>>> up on the Internet on how to change my root and individual users'
>>> passwords.
>>>
>>> The last command the URL had me type was "flush privileges;" and once
>>> I did that, I think it created a problem for everything else.
>>>
>>> Here's what I got when I ran SHOW GRANTS:
>>>
>>> mysql> show GRANTS;
>>> +--------------------------------------------------------------------
>>> ---
>>> --------------------------------------+
>>> | Grants for
>>> untz@localhost
>>> |
>>> +--------------------------------------------------------------------
>>> ---
>>> --------------------------------------+
>>> | GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
>>> '*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
>>> | GRANT ALL PRIVILEGES ON `depot_development`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `depot_production`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `music_development`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `music_production`.* TO 'untz'@'localhost'
>>> +--------------------------------------------------------------------
>>> ---
>>> --------------------------------------+
>>> 7 rows in set (0.00 sec)
>>>
>>> What am I supposed to do? I can not run queries or even create
>>> tables...
>>>
>>> I also tried using a MySQL client (CocoaMySQL) and it displayed the
>>> same error as in the previous e-mail (see below).
>>>
>>> Am really stuck on this so any help, suggestions, etc. would be
>>> greatly appreciated!
>>>
>>> Sincerely yours,
>>>
>>> untz
>>>
>>> On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:
>>>
>>> > Hi untz,
>>> >
>>> > untz wrote:
>>> >> Hello there,
>>> >> I am using MySQL 5 on OS X Tiger...
>>> >> After starting the server, I tried to create a sample database and
>>> >> this is what what happened:
>>> >> $ mysql -u untz -p
>>> >> Enter password:
>>> >> Welcome to the MySQL monitor. Commands end with ; or \g.
>>> >> Your MySQL connection id is 4 to server version: 5.0.16-standard
>>> >> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>>> >> mysql> create database people_development;
>>> >> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
>>> >> database 'people_development'
>>> >> mysql>
>>> >
>>> > Try running SHOW GRANTS while logged in, and see what privileges
>>> > you have. You probably need to grant your user some additional
>>> > privileges.
>>> >
>>> > Cheers
>>> > Baron
>>> >
>>> > --
>>> > MySQL General Mailing List
>>> > For list archives: http://lists.mysql.com/mysql
>>> > To unsubscribe: http://lists.mysql.com/mysql?
>>> > unsub=untz786@yahoo.com
>>> >
>>>
>>>
>>> --
>>> MySQL General Mailing List
>>> For list archives: http://lists.mysql.com/mysql
>>> To unsubscribe: http://lists.mysql.com/mysql? unsub=anandkl@gmail.com
>>>
>>>

>
>

The show grants you ran shows you the proper syntax.

--
Gerald L. Clark
Supplier Systems Corporation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-28-2008, 06:35 AM
Mikhail Berman
 
Posts: n/a
Default RE: Access Denied When Trying to Create Database

Looks like words "privileges on" are missing from GRANT statement you
used

Should be "grant super privileges on *.* to 'untz'@'localhost'
identified by 'password';
Not "grant super *.* to 'untz'@'localhost' identified by 'password';"

Regards,

Mikhail Berman

-----Original Message-----
From: untz [mailto:untz786@yahoo.com]
Sent: Monday, June 11, 2007 4:02 PM
To: Ananda Kumar
Cc: mysql@lists.mysql.com
Subject: Re: Access Denied When Trying to Create Database

Ananda,

Thank you for responding!

I just tried this and got the following:

mysql> grant super *.* to 'untz'@'localhost' identified by 'password';
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near '*.* to untz@localhost identified by password' at
line 1

Can anyone please help me?

I am not a DBA....

Kindest regards,

untz

On Jun 11, 2007, at 4:36 AM, Ananda Kumar wrote:

> Is this a user "untz" going to do even the "create procedure", if
> yes then
> you need to grant "super" previliege to this user.
>
> grant super on *.* to 'untz'@'localhost' identified by 'password';
>
> regards
> anandkl
>
> On 6/11/07, untz <untz786@yahoo.com> wrote:
>>
>> Baron & Prathima,
>>
>> Thank for the information!
>>
>> What happened is that I hadn't used MySQL for a long time and looked
>> up on the Internet on how to change my root and individual users'
>> passwords.
>>
>> The last command the URL had me type was "flush privileges;" and once
>> I did that, I think it created a problem for everything else.
>>
>> Here's what I got when I ran SHOW GRANTS:
>>
>> mysql> show GRANTS;
>> +--------------------------------------------------------------------


>> ---
>> --------------------------------------+
>> | Grants for
>> untz@localhost
>> |
>> +--------------------------------------------------------------------


>> ---
>> --------------------------------------+
>> | GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
>> '*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
>> | GRANT ALL PRIVILEGES ON `depot_development`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `depot_production`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `music_development`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
>> | GRANT ALL PRIVILEGES ON `music_production`.* TO 'untz'@'localhost'
>> +--------------------------------------------------------------------


>> ---
>> --------------------------------------+
>> 7 rows in set (0.00 sec)
>>
>> What am I supposed to do? I can not run queries or even create
>> tables...
>>
>> I also tried using a MySQL client (CocoaMySQL) and it displayed the
>> same error as in the previous e-mail (see below).
>>
>> Am really stuck on this so any help, suggestions, etc. would be
>> greatly appreciated!
>>
>> Sincerely yours,
>>
>> untz
>>
>> On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:
>>
>> > Hi untz,
>> >
>> > untz wrote:
>> >> Hello there,
>> >> I am using MySQL 5 on OS X Tiger...
>> >> After starting the server, I tried to create a sample database and
>> >> this is what what happened:
>> >> $ mysql -u untz -p
>> >> Enter password:
>> >> Welcome to the MySQL monitor. Commands end with ; or \g.
>> >> Your MySQL connection id is 4 to server version: 5.0.16-standard
>> >> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>> >> mysql> create database people_development;
>> >> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
>> >> database 'people_development'
>> >> mysql>
>> >
>> > Try running SHOW GRANTS while logged in, and see what privileges
>> > you have. You probably need to grant your user some additional
>> > privileges.
>> >
>> > Cheers
>> > Baron
>> >
>> > --
>> > MySQL General Mailing List
>> > For list archives: http://lists.mysql.com/mysql
>> > To unsubscribe: http://lists.mysql.com/mysql?
>> > unsub=untz786@yahoo.com
>> >

>>
>>
>> --
>> MySQL General Mailing List
>> For list archives: http://lists.mysql.com/mysql
>> To unsubscribe: http://lists.mysql.com/mysql?
>> unsub=anandkl@gmail.com
>>
>>



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/mysql?unsub=mberman@ivesinc.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-28-2008, 06:35 AM
untz
 
Posts: n/a
Default Re: Access Denied When Trying to Create Database

Mikhail,

I just tried what you suggested and got this:

mysql> grant super privileges on *.* to 'untz'@'localhost' identified
by 'maddog';
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'privileges on *.* to 'untz'@'localhost'
identified by 'maddog'' at line 1

Many, many thanks,

untz

On Jun 11, 2007, at 1:21 PM, Mikhail Berman wrote:

> Looks like words "privileges on" are missing from GRANT statement you
> used
>
> Should be "grant super privileges on *.* to 'untz'@'localhost'
> identified by 'password';
> Not "grant super *.* to 'untz'@'localhost' identified by 'password';"
>
> Regards,
>
> Mikhail Berman
>
> -----Original Message-----
> From: untz [mailto:untz786@yahoo.com]
> Sent: Monday, June 11, 2007 4:02 PM
> To: Ananda Kumar
> Cc: mysql@lists.mysql.com
> Subject: Re: Access Denied When Trying to Create Database
>
> Ananda,
>
> Thank you for responding!
>
> I just tried this and got the following:
>
> mysql> grant super *.* to 'untz'@'localhost' identified by 'password';
> ERROR 1064 (42000): You have an error in your SQL syntax; check the
> manual that corresponds to your MySQL server version for the right
> syntax to use near '*.* to untz@localhost identified by password' at
> line 1
>
> Can anyone please help me?
>
> I am not a DBA....
>
> Kindest regards,
>
> untz
>
> On Jun 11, 2007, at 4:36 AM, Ananda Kumar wrote:
>
>> Is this a user "untz" going to do even the "create procedure", if
>> yes then
>> you need to grant "super" previliege to this user.
>>
>> grant super on *.* to 'untz'@'localhost' identified by 'password';
>>
>> regards
>> anandkl
>>
>> On 6/11/07, untz <untz786@yahoo.com> wrote:
>>>
>>> Baron & Prathima,
>>>
>>> Thank for the information!
>>>
>>> What happened is that I hadn't used MySQL for a long time and looked
>>> up on the Internet on how to change my root and individual users'
>>> passwords.
>>>
>>> The last command the URL had me type was "flush privileges;" and
>>> once
>>> I did that, I think it created a problem for everything else.
>>>
>>> Here's what I got when I ran SHOW GRANTS:
>>>
>>> mysql> show GRANTS;
>>> +-------------------------------------------------------------------
>>> -

>
>>> ---
>>> --------------------------------------+
>>> | Grants for
>>> untz@localhost
>>> |
>>> +-------------------------------------------------------------------
>>> -

>
>>> ---
>>> --------------------------------------+
>>> | GRANT USAGE ON *.* TO 'untz'@'localhost' IDENTIFIED BY PASSWORD
>>> '*55C1BF0D7E49AB5343925CDD17F2F5F923B5248C'
>>> | GRANT ALL PRIVILEGES ON `depot_development`.* TO
>>> 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `depot_test`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `depot_production`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `music_development`.* TO
>>> 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `music_test`.* TO 'untz'@'localhost'
>>> | GRANT ALL PRIVILEGES ON `music_production`.* TO 'untz'@'localhost'
>>> +-------------------------------------------------------------------
>>> -

>
>>> ---
>>> --------------------------------------+
>>> 7 rows in set (0.00 sec)
>>>
>>> What am I supposed to do? I can not run queries or even create
>>> tables...
>>>
>>> I also tried using a MySQL client (CocoaMySQL) and it displayed the
>>> same error as in the previous e-mail (see below).
>>>
>>> Am really stuck on this so any help, suggestions, etc. would be
>>> greatly appreciated!
>>>
>>> Sincerely yours,
>>>
>>> untz
>>>
>>> On Jun 10, 2007, at 5:44 AM, Baron Schwartz wrote:
>>>
>>>> Hi untz,
>>>>
>>>> untz wrote:
>>>>> Hello there,
>>>>> I am using MySQL 5 on OS X Tiger...
>>>>> After starting the server, I tried to create a sample database and
>>>>> this is what what happened:
>>>>> $ mysql -u untz -p
>>>>> Enter password:
>>>>> Welcome to the MySQL monitor. Commands end with ; or \g.
>>>>> Your MySQL connection id is 4 to server version: 5.0.16-standard
>>>>> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>>>>> mysql> create database people_development;
>>>>> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to
>>>>> database 'people_development'
>>>>> mysql>
>>>>
>>>> Try running SHOW GRANTS while logged in, and see what privileges
>>>> you have. You probably need to grant your user some additional
>>>> privileges.
>>>>
>>>> Cheers
>>>> Baron
>>>>
>>>> --
>>>> MySQL General Mailing List
>>>> For list archives: http://lists.mysql.com/mysql
>>>> To unsubscribe: http://lists.mysql.com/mysql?
>>>> unsub=untz786@yahoo.com
>>>>
>>>
>>>
>>> --
>>> MySQL General Mailing List
>>> For list archives: http://lists.mysql.com/mysql
>>> To unsubscribe: http://lists.mysql.com/mysql?
>>> unsub=anandkl@gmail.com
>>>
>>>

>
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:
> http://lists.mysql.com/mysql?unsub=mberman@ivesinc.com
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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


All times are GMT. The time now is 06:31 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84