Bluehost.com Web Hosting $6.95

user password and privileges

This is a discussion on user password and privileges within the MySQL Database forums, part of the Database Forums category; Hi, I'm trying to perform the simple task of creating a user and granting him all privileges. The password ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-23-2007
drblitzkrieg@gmail.com
 
Posts: n/a
Default user password and privileges

Hi, I'm trying to perform the simple task of creating a user and
granting him all privileges. The password of the user I created
remains blank. As root, and have tried:

update user set password=password('mypass') where user='myuser';
grant all privileges on *.* to 'cms'@'%' identified by 'mypass' with
grant option;

both of these return the following:
Query OK, 0 rows affected (0.01 sec)
Rows matched: 1 Changed: 0 Warnings: 0

The password remains blank. So if it's matching a row, why isn't it
changing it?


The following is returned from "select * from user where
user='myuser'":

tdown_priv | Process_priv | File_priv | Grant_priv | References_priv |
Index_priv | Alter_priv | Show_db_priv | Super_priv |
Create_tmp_table_priv | Lock_tables_priv | Execute_priv |
Repl_slave_priv | Repl_client_priv | Create_view_priv | Show_view_priv
| Create_routine_priv | Alter_routine_priv | Create_user_priv |
ssl_type | ssl_cipher | x509_issuer | x509_subject | max_questions |
max_updates | max_connections | max_user_connections |
+------+------+-------------------------------------------
+-------------+-------------+-------------+-------------+-------------
+-----------+-------------+---------------+--------------+-----------
+------------+-----------------+------------+------------
+--------------+------------+-----------------------+------------------
+--------------+-----------------+------------------+------------------
+----------------+---------------------+--------------------
+------------------+----------+------------+-------------
+--------------+---------------+-------------+-----------------
+----------------------+
| % | cms | *E8AFA04A0A8FAC8CC12C5FCA645514E7DF01F0D6 |
Y | Y | Y | Y | Y |
Y | Y | Y | Y | Y |
Y | Y | Y | Y | Y
| Y | Y | Y | Y
| Y | Y | Y |
Y | Y | Y |
Y | | |

Reply With Quote
  #2 (permalink)  
Old 03-23-2007
Captain Paralytic
 
Posts: n/a
Default Re: user password and privileges

On 23 Mar, 10:00, drblitzkr...@gmail.com wrote:
> Hi, I'm trying to perform the simple task of creating a user and
> granting him all privileges. The password of the user I created
> remains blank. As root, and have tried:
>
> update user set password=password('mypass') where user='myuser';
> grant all privileges on *.* to 'cms'@'%' identified by 'mypass' with
> grant option;
>
> both of these return the following:
> Query OK, 0 rows affected (0.01 sec)
> Rows matched: 1 Changed: 0 Warnings: 0
>
> The password remains blank. So if it's matching a row, why isn't it
> changing it?
>
> The following is returned from "select * from user where
> user='myuser'":
>
> tdown_priv | Process_priv | File_priv | Grant_priv | References_priv |
> Index_priv | Alter_priv | Show_db_priv | Super_priv |
> Create_tmp_table_priv | Lock_tables_priv | Execute_priv |
> Repl_slave_priv | Repl_client_priv | Create_view_priv | Show_view_priv
> | Create_routine_priv | Alter_routine_priv | Create_user_priv |
> ssl_type | ssl_cipher | x509_issuer | x509_subject | max_questions |
> max_updates | max_connections | max_user_connections |
> +------+------+-------------------------------------------
> +-------------+-------------+-------------+-------------+-------------
> +-----------+-------------+---------------+--------------+-----------
> +------------+-----------------+------------+------------
> +--------------+------------+-----------------------+------------------
> +--------------+-----------------+------------------+------------------
> +----------------+---------------------+--------------------
> +------------------+----------+------------+-------------
> +--------------+---------------+-------------+-----------------
> +----------------------+
> | % | cms | *E8AFA04A0A8FAC8CC12C5FCA645514E7DF01F0D6 |
> Y | Y | Y | Y | Y |
> Y | Y | Y | Y | Y |
> Y | Y | Y | Y | Y
> | Y | Y | Y | Y
> | Y | Y | Y |
> Y | Y | Y |
> Y | | |


how strange that `user` doen't appear as a column here???

Reply With Quote
  #3 (permalink)  
Old 03-27-2007
drblitzkrieg@gmail.com
 
Posts: n/a
Default Re: user password and privileges

On Mar 23, 7:07 pm, "Captain Paralytic" <paul_laut...@yahoo.com>
wrote:
> On 23 Mar, 10:00, drblitzkr...@gmail.com wrote:
>
>
>
> > Hi, I'm trying to perform the simple task of creating a user and
> > granting him all privileges. The password of the user I created
> > remains blank. As root, and have tried:

>
> > update user set password=password('mypass') where user='myuser';
> > grant all privileges on *.* to 'cms'@'%' identified by 'mypass' with
> > grant option;

>
> > both of these return the following:
> > Query OK, 0 rows affected (0.01 sec)
> > Rows matched: 1 Changed: 0 Warnings: 0

>
> > The password remains blank. So if it's matching a row, why isn't it
> > changing it?

>
> > The following is returned from "select * from user where
> > user='myuser'":

>
> > tdown_priv | Process_priv | File_priv | Grant_priv | References_priv |
> > Index_priv | Alter_priv | Show_db_priv | Super_priv |
> > Create_tmp_table_priv | Lock_tables_priv | Execute_priv |
> > Repl_slave_priv | Repl_client_priv | Create_view_priv | Show_view_priv
> > | Create_routine_priv | Alter_routine_priv | Create_user_priv |
> > ssl_type | ssl_cipher | x509_issuer | x509_subject | max_questions |
> > max_updates | max_connections | max_user_connections |
> > +------+------+-------------------------------------------
> > +-------------+-------------+-------------+-------------+-------------
> > +-----------+-------------+---------------+--------------+-----------
> > +------------+-----------------+------------+------------
> > +--------------+------------+-----------------------+------------------
> > +--------------+-----------------+------------------+------------------
> > +----------------+---------------------+--------------------
> > +------------------+----------+------------+-------------
> > +--------------+---------------+-------------+-----------------
> > +----------------------+
> > | % | cms | *E8AFA04A0A8FAC8CC12C5FCA645514E7DF01F0D6 |
> > Y | Y | Y | Y | Y |
> > Y | Y | Y | Y | Y |
> > Y | Y | Y | Y | Y
> > | Y | Y | Y | Y
> > | Y | Y | Y |
> > Y | Y | Y |
> > Y | | |

>
> how strange that `user` doen't appear as a column here???



Sorry, looks like this part got cut off when I pasted:
| Host | User | Password | Select_priv | Insert_priv |
Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv |
Shutdown_priv

The important columns from the "user" table of the "mysql" database
are "host", "user" and "password". When trying to change any of
these, it doesn't seem to allow it.

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




All times are GMT +1. The time now is 07:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0