Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I wouldn't suggest passing your login information that way. This means your password is </p> <ul> <li>Visible in the processlist (some distro's will filter that but)</li> <li>It's either stored in a crontab or your bash .history file</li> </ul> <p>Instead create at script.cnf file that is NOT world readable.</p> <p>The contents will look like</p> <pre><code>[client] user=abc_wspitesdev password=your_password </code></pre> <p>Change your command line call to</p> <p>mysql --defaults-file=/path/to/script.cnf -h localhost abc_wpsitesdev mysql </p> <p><strong>Edit</strong></p> <p>Your other comment said you could connect as other users. If you have root access to this db run</p> <p>select user, host, passowrd from mysql.users;</p> <p>Compare the one that's not working with others that are.</p> <p>The passwords that are stored will be hashes of the actual values. Are they all the same length? If one is significantly longer or shorter it could be the password was stored with an old password hashing method used in versions 4.x and earlier.</p> <p>What is the host for the account you are trying to connect through? Is it 'localhost' or an IP address? If it is your IP address this likely might be the problem. Since your command line call is connecting to localhost this will tell it to connect through a unix socket (/var/lib/mysql/mysql.sock perhaps). MySQL differentiates these connections from ones coming through the TCP stack.</p> <p>You could alternatively specify your full (non 127.0.0.1) IP address on the commandline if this is the case like</p> <p>mysql -u blah -pblah -h 1.2.3.4</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.
 

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