Professional Web Applications Themes

user password and privileges - MySQL

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 | ...

  1. #1

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

    drblitzkrieg@gmail.com Guest

  2. #2

    Default Re: user password and privileges

    On 23 Mar, 10:00, com wrote: 

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

    Captain Guest

  3. #3

    Default Re: user password and privileges

    On Mar 23, 7:07 pm, "Captain Paralytic" <com>
    wrote: 





    >
    > how strange that `user` doen't appear as a column here???[/ref]


    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.

    drblitzkrieg@gmail.com Guest

Similar Threads

  1. User privileges problem
    By John in forum Windows Server
    Replies: 4
    Last Post: August 11th, 09:17 PM
  2. Registering a new user: privileges issue?
    By Alberto in forum PHP Development
    Replies: 0
    Last Post: June 2nd, 07:33 PM
  3. User Privileges
    By RG in forum Windows Server
    Replies: 1
    Last Post: June 2nd, 06:26 PM
  4. Retrieving user privileges via sql
    By M.J.R. in forum Informix
    Replies: 2
    Last Post: August 14th, 09:47 AM
  5. Installing Software as User w/ Admin Privileges
    By Jorge in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 14th, 03:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139