Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Notice how the output of</p> <pre><code>SHOW GRANTS FOR 'root'@'localhost'; </code></pre> <p>did not say 'ALL PRIVILEGES' but had to spell out what root@localhost has.</p> <p>GRANT ALL PRIVILEGES will fail, because a user can not grant what he/she does not have, and the server seem to think something is not here ...</p> <p>Now, what's missing then ?</p> <p>On my system, I get this:</p> <pre><code>mysql&gt; select version(); +------------+ | version() | +------------+ | 5.5.21-log | +------------+ 1 row in set (0.00 sec) mysql&gt; SHOW GRANTS FOR 'root'@'localhost'; +---------------------------------------------------------------------+ | Grants for root@localhost | +---------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION | | GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION | +---------------------------------------------------------------------+ 2 rows in set (0.00 sec) mysql&gt; SELECT * FROM mysql.user WHERE User='root' and Host='localhost'\G *************************** 1. row *************************** Host: localhost User: root Password: Select_priv: Y Insert_priv: Y Update_priv: Y Delete_priv: Y Create_priv: Y Drop_priv: Y Reload_priv: Y Shutdown_priv: Y Process_priv: Y File_priv: Y Grant_priv: Y References_priv: Y Index_priv: Y Alter_priv: Y Show_db_priv: Y Super_priv: Y Create_tmp_table_priv: Y Lock_tables_priv: Y Execute_priv: Y Repl_slave_priv: Y Repl_client_priv: Y Create_view_priv: Y Show_view_priv: Y Create_routine_priv: Y Alter_routine_priv: Y Create_user_priv: Y Event_priv: Y Trigger_priv: Y Create_tablespace_priv: Y &lt;----------------------------- new column in 5.5 ssl_type: ssl_cipher: x509_issuer: x509_subject: max_questions: 0 max_updates: 0 max_connections: 0 max_user_connections: 0 plugin: &lt;------------------------------- new column in 5.5 authentication_string: &lt;------------------------------- new column in 5.5 1 row in set (0.00 sec) </code></pre> <p>There are also new tables in 5.5, such as mysql.proxies_user: make sure you have them.</p> <p>When installing a brand new mysql server instance, the install script will create all the mysql.* tables with the proper structure.</p> <p>When upgrading from an old version, make sure the proper upgrade procedure (mysql_upgrade) is used, which will add the missing tables / columns.</p> <p>It is only a guess, but it seems mysql_upgrade was not done for this instance, causing the behavior seen.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload