элементарно localhost это 127.0.0.1, а не 10.1.18.27 тебе нужно добавить 10.1.18.27 для рута.
On 04.12.2015 17:54, alex.emergy wrote: > # ssh -f -L 33306:127.0.0.1:3306 10.1.18.27 sleep 10 > # mysql -h127.0.0.1 -P33306 > ERROR 1045 (28000): Access denied for user 'root'@'10.1.18.27' (using > password: NO) > # > > mysql> select Host,User from user where User = 'root'; > +-----------+------+ > | Host | User | > +-----------+------+ > | localhost | root | > +-----------+------+ > 1 row in set (0.00 sec) > > > > Почему он пытается подключиться как 10.1.18.27, а не localhost? Нужен способ, > подключаться как root@localhost к удалённой базе.
signature.asc
Description: OpenPGP digital signature
-- ubuntu-ru mailing list ubuntu-ru@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru