<html><head><meta http-equiv="Content-Type" content="text/html charset=koi8-r"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Это уже изврат какой-то<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">2 февр. 2016 г., в 9:58, Timofey Koolin <<a href="mailto:timofey@koolin.ru" class="">timofey@koolin.ru</a>> написал(а):</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">попробуйте в /etc/hosts добавить строку<br class=""></div>10.1.18.27 localhost<br class=""><br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">4 декабря 2015 г., 17:57 пользователь Рустам Валиуллин <span dir="ltr" class=""><<a href="mailto:valrust@gmail.com" target="_blank" class="">valrust@gmail.com</a>></span> написал:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p class="">А если вот так подключиться:</p><p class="">mysql -h localhost -P33306</p>
<div class="gmail_quote">04.12.2015 14:54 пользователь "alex.emergy" <<a href="mailto:alex.emergy@gmail.com" target="_blank" class="">alex.emergy@gmail.com</a>> написал:<div class=""><div class="h5"><br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># ssh -f -L 33306:<a href="http://127.0.0.1:3306/" rel="noreferrer" target="_blank" class="">127.0.0.1:3306</a> 10.1.18.27 sleep 10<br class="">
# mysql -h127.0.0.1 -P33306<br class="">
ERROR 1045 (28000): Access denied for user 'root'@'10.1.18.27' (using password: NO)<br class="">
#<br class="">
<br class="">
mysql> select Host,User from user where User = 'root';<br class="">
+-----------+------+<br class="">
| Host      | User |<br class="">
+-----------+------+<br class="">
| localhost | root |<br class="">
+-----------+------+<br class="">
1 row in set (0.00 sec)<br class="">
<br class="">
<br class="">
<br class="">
Почему он пытается подключиться как 10.1.18.27, а не localhost? Нужен способ, подключаться как root@localhost к удалённой базе.<br class="">
--<br class="">
ubuntu-ru mailing list<br class="">
<a href="mailto:ubuntu-ru@lists.ubuntu.com" target="_blank" class="">ubuntu-ru@lists.ubuntu.com</a><br class="">
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru" rel="noreferrer" target="_blank" class="">https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru</a><br class="">
</blockquote></div></div></div>
<br class="">--<br class="">
ubuntu-ru mailing list<br class="">
<a href="mailto:ubuntu-ru@lists.ubuntu.com" class="">ubuntu-ru@lists.ubuntu.com</a><br class="">
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru" rel="noreferrer" target="_blank" class="">https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature">Blog: <a href="http://www.rekby.ru/" target="_blank" class="">www.rekby.ru</a></div>
</div>
-- <br class="">ubuntu-ru mailing list<br class=""><a href="mailto:ubuntu-ru@lists.ubuntu.com" class="">ubuntu-ru@lists.ubuntu.com</a><br class="">https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru<br class=""></div></blockquote></div><br class=""></div></body></html>