I am very new to mysql and I want to use remote login I followed this stack process but the command gives me nothing on the screen as listed on that link
$ lsof -i -P | grep :3306
$
this is the output.
What I did so far: I edited the file /etc/mysql/my.cnf to make change and looks like this
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 0.0.0.0
What I want basically that I want remote login.But I am unable to that. I run following command on my terminal
$ mysql -h 127.6.110.2 -u adminTwz5PWn -p
$ enter password:
ERROR 1045 (28000): Access denied for user 'adminTwz5PWn'@'localhost' (using password: YES)
For sake of information needed I got this username and password from Openshift My concern is that how @'localhost' comes into the picture If I am providing the host ip in the command
I have user log in to mysql as follows
+------------------+---------------+
| user | host |
+------------------+---------------+
| root | % |
| root | 127.0.0.1 |
| adminvKbP1kf | 127.3.138.130 |
| adminTwz5PWn | 127.6.110.2 |
| root | ::1 |
| user | hostname |
| debian-sys-maint | localhost |
| phpmyadmin | localhost |
| phpmyadmin_suraj | localhost |
| root | localhost |
| suraj | localhost |
+------------------+---------------+
Please correct me if I am wrong anywhere. And what steps are needed to make this successfull