Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>"Where" is user "abc_wpsitesdev" allowed to connect from as opposed to where the "abc_wpsites" user is allowed to connect from -- any difference?</p> <p>If you did "grant all privileges on abcwpsitedev to 'abc_wpsitesdev'@'%' identified by 'thedevpassword';" that won't work for accessing from localhost as explained in the last pargraph in the post from the manual below:</p> <p>From the MySQL manual:</p> <p>After connecting to the server as root, you can add new accounts. The following statements use GRANT to set up four new accounts: </p> <p>mysql> GRANT ALL PRIVILEGES ON <em>.</em> TO 'monty'@'localhost' -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;</p> <p>mysql> GRANT ALL PRIVILEGES ON <em>.</em> TO 'monty'@'%' -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;</p> <p>mysql> GRANT RELOAD,PROCESS ON <em>.</em> TO 'admin'@'localhost';</p> <p>mysql> GRANT USAGE ON <em>.</em> TO 'dummy'@'localhost';</p> <p>The accounts created by these statements have the following properties: </p> <p>Two of the accounts have a user name of monty and a password of some_pass. Both accounts are superuser accounts with full privileges to do anything. The 'monty'@'localhost' account can be used only when connecting from the local host. The 'monty'@'%' account uses the '%' wildcard for the host part, so it can be used to connect from any host.</p> <p>It is necessary to have both accounts for monty to be able to connect from anywhere as monty. Without the localhost account, the anonymous-user account for localhost that is created by mysql_install_db would take precedence when monty connects from the local host. As a result, monty would be treated as an anonymous user. The reason for this is that the anonymous-user account has a more specific Host column value than the 'monty'@'%' account and thus comes earlier in the user table sort order. (user table sorting is discussed in Section 5.5.4, “Access Control, Stage 1: Connection Verification”.) </p>
    singulars
    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.
    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