Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I figured it out...</p> <p>I logged in as as root and checked the priveleges of root and where it differs from wordpress:</p> <pre><code>mysql&gt; SHOW GRANTS; +---------------------------------------------------------------------+ | 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; SHOW GRANTS FOR wordpress; +-----------------------------------------------------------------------------+ | Grants for wordpress@% | +-----------------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'%' WITH GRANT OPTION | | GRANT ALL PRIVILEGES ON `skytreader`.* TO 'wordpress'@'%' WITH GRANT OPTION | +-----------------------------------------------------------------------------+ 2 rows in set (0.00 sec) </code></pre> <p>As it stands, the only difference I can gather is the host. I went back to phpMyAdmin to change the host of user wordpress and specify it as 'localhost'. And lo,</p> <pre><code>&gt;mysql -u wordpress Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 42 Server version: 5.5.27 MySQL Community Server (GPL) Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql&gt; SHOW GRANTS; +-------------------------------------------------------------------------------------+ | Grants for wordpress@localhost | +-------------------------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'localhost' WITH GRANT OPTION | | GRANT ALL PRIVILEGES ON `skytreader`.* TO 'wordpress'@'localhost' WITH GRANT OPTION | +-------------------------------------------------------------------------------------+ 2 rows in set (0.00 sec) mysql&gt; USE sitedb; Database changed </code></pre> <p>Now I wonder why is this so? Isn't it that 'wordpress'@'%' should stand for wild card host (and so it should include localhost)? I'm guessing this is some kind of security feature...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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