can anyone please explain what the difference is between localhost and servername, e.g. when i connect via ssh to my server
mysql -h localhost -u root -p
i then enter my normal password and it allows me in to mysql
but when i do
mysql -h myservername.net -u root -p
it won't allow me to connect with any password.
yet when i look at user root on Host myservername.net in phpMyAdmin it says Password No, but of course this user has privileges on all databases. is this a security risk? should i set a password for this user, and should (must) it be the same as the password for localhost?
many thanks