<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; MySQL + доступ из вне?]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=10569&amp;type=atom" />
	<updated>2011-02-02T21:33:29Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=10569</id>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140033#p140033" />
			<content type="html"><![CDATA[<p>получилось <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> значение host для юзера нужно было поставить %.<br /><strong>Odin</strong>, спасибо за помощь и наводку на путь! <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2011-02-02T21:33:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140033#p140033</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140032#p140032" />
			<content type="html"><![CDATA[<p>создал пользователя, дал ему фул доступ к необходимым БД и эффект тот-же <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /><br />Database connection failed: Access denied for user &#039;server&#039;@&#039;мой_текущий_IP&#039; (using password: YES)<br />я как бы хотел что бы этот пользователь мог соединяться с базой с любого IP</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2011-02-02T21:21:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140032#p140032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140024#p140024" />
			<content type="html"><![CDATA[<p>давать доступ руту из вне не безопасно... <a href="http://dev.mysql.com/doc/refman/5.5/en/adding-users.html">вот</a></p>]]></content>
			<author>
				<name><![CDATA[odin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=7138</uri>
			</author>
			<updated>2011-02-02T20:55:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140024#p140024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140022#p140022" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>odin пишет:</cite><blockquote><p>вы бы доку к мускулу прочли... рутом только локально можно....</p></blockquote></div><p>сорри, я как-то не в курсе был... был уверен что рутом можно все)) (супер пользователь ведь <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" /> )... а как настроить доступ другому пользователю? я учусь всему в спешке...</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2011-02-02T20:50:00Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140022#p140022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140021#p140021" />
			<content type="html"><![CDATA[<p>[root@localhost]# telnet ххх.ххх.ххх.ххх 3306<br />Trying ххх.ххх.ххх.ххх...<br />Connected to ip.css.od.ua (ххх.ххх.ххх.ххх).<br />Escape character is &#039;^]&#039;.<br />HHost &#039;ууу.ууу.ууу.ууу&#039; is not allowed to connect to this MySQL serverConnection closed by foreign host.<br />[root@localhost]#</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2011-02-02T20:47:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140021#p140021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140019#p140019" />
			<content type="html"><![CDATA[<p>вы бы доку к мускулу прочли... рутом только локально можно....</p>]]></content>
			<author>
				<name><![CDATA[odin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=7138</uri>
			</author>
			<updated>2011-02-02T20:46:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140019#p140019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140017#p140017" />
			<content type="html"><![CDATA[<p>мускул находится за NAT&#039;ом, порт с роутера прокинут, в фаерволе в исключении, подключаюсь рутом<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p># A generic my.cnf file based on /usr/share/mysql/my-medium.cnf<br />#<br /># This is for a system with little memory (32M - 64M) where MySQL plays<br /># an important part, or systems up to 128M where MySQL is used together with<br /># other programs (such as a web server)<br />#</p><p># The following options will be passed to all MySQL clients<br />[client]<br />user&nbsp; &nbsp; &nbsp; &nbsp; = root<br />#password&nbsp; &nbsp; = **********<br />port&nbsp; &nbsp; &nbsp; &nbsp; = 3306<br />#socket&nbsp; &nbsp; &nbsp; &nbsp; = /var/lib/mysql/mysql.sock</p><p># Here follows entries for some specific programs</p><p># The MySQL server<br />[mysqld]<br />user&nbsp; &nbsp; &nbsp; &nbsp; = mysql<br />datadir&nbsp; &nbsp; &nbsp; &nbsp; = /var/lib/mysql<br />port&nbsp; &nbsp; &nbsp; &nbsp; = 3306<br />#socket&nbsp; &nbsp; &nbsp; &nbsp; = /var/lib/mysql/mysql.sock<br />pid-file&nbsp; &nbsp; = /var/run/mysqld/mysqld.pid<br />skip-locking<br />key_buffer = 16M<br />max_allowed_packet = 32M<br />table_cache = 64<br />sort_buffer_size = 512K<br />net_buffer_length = 8K<br />read_buffer_size = 256K<br />read_rnd_buffer_size = 512K<br />myisam_sort_buffer_size = 8M<br />collation_server = utf8_unicode_ci<br />character_set_server = utf8</p><p># plugins<br />plugin_dir=/usr/lib/mysql/plugin<br />#plugin-load=ha_archive.so;ha_blackhole.so;ha_innodb.so;ha_revision.so;ha_sphinx.so;libpbxt.so</p><p># acivate the federated storage engine<br />federated</p><p># Default to using old password format for compatibility with old and<br /># shorter password hash.<br /># Reference: <a href="http://dev.mysql.com/doc/mysql/en/Password_hashing.html">http://dev.mysql.com/doc/mysql/en/Password_hashing.html</a><br />old_passwords</p><p># Don&#039;t listen on a TCP/IP port at all. This can be a security enhancement,<br /># if all processes that need to connect to mysqld run on the same host.<br /># All interaction with mysqld must be made via Unix sockets or named pipes.<br /># Note that using this option without enabling named pipes on Windows<br /># (via the &quot;enable-named-pipe&quot; option) will render mysqld useless!<br /># <br />#skip-networking</p><p># Disabling symbolic-links is recommended to prevent assorted security risks<br />symbolic-links=0</p><p># Replication Master Server (default)<br /># binary logging is required for replication<br />#log-bin=mysql-bin</p><p># required unique id between 1 and 2^32 - 1<br /># defaults to 1 if master-host is not set<br /># but will not function as a master if omitted<br />server-id&nbsp; &nbsp; = 1</p><p># Replication Slave (comment out master section to use this)<br />#<br /># To configure this host as a replication slave, you can choose between<br /># two methods :<br />#<br /># 1) Use the CHANGE MASTER TO command (fully described in our manual) -<br />#&nbsp; &nbsp; the syntax is:<br />#<br />#&nbsp; &nbsp; CHANGE MASTER TO MASTER_HOST=&lt;host&gt;, MASTER_PORT=&lt;port&gt;,<br />#&nbsp; &nbsp; MASTER_USER=&lt;user&gt;, MASTER_PASSWORD=&lt;password&gt; ;<br />#<br />#&nbsp; &nbsp; where you replace &lt;host&gt;, &lt;user&gt;, &lt;password&gt; by quoted strings and<br />#&nbsp; &nbsp; &lt;port&gt; by the master&#039;s port number (3306 by default).<br />#<br />#&nbsp; &nbsp; Example:<br />#<br />#&nbsp; &nbsp; CHANGE MASTER TO MASTER_HOST=&#039;125.564.12.1&#039;, MASTER_PORT=3306,<br />#&nbsp; &nbsp; MASTER_USER=&#039;joe&#039;, MASTER_PASSWORD=&#039;secret&#039;;<br />#<br /># OR<br />#<br /># 2) Set the variables below. However, in case you choose this method, then<br />#&nbsp; &nbsp; start replication for the first time (even unsuccessfully, for example<br />#&nbsp; &nbsp; if you mistyped the password in master-password and the slave fails to<br />#&nbsp; &nbsp; connect), the slave will create a master.info file, and any later<br />#&nbsp; &nbsp; change in this file to the variables&#039; values below will be ignored and<br />#&nbsp; &nbsp; overridden by the content of the master.info file, unless you shutdown<br />#&nbsp; &nbsp; the slave server, delete master.info and restart the slaver server.<br />#&nbsp; &nbsp; For that reason, you may want to leave the lines below untouched<br />#&nbsp; &nbsp; (commented) and instead use CHANGE MASTER TO (see above)<br />#<br /># required unique id between 2 and 2^32 - 1<br /># (and different from the master)<br /># defaults to 2 if master-host is set<br /># but will not function as a slave if omitted<br />#server-id&nbsp; &nbsp; &nbsp; &nbsp;= 2<br />#<br /># The replication master for this slave - required<br />#master-host&nbsp; &nbsp; &nbsp;=&nbsp; &nbsp;&lt;hostname&gt;<br />#<br /># The username the slave will use for authentication when connecting<br /># to the master - required<br />#master-user&nbsp; &nbsp; &nbsp;=&nbsp; &nbsp;&lt;username&gt;<br />#<br /># The password the slave will authenticate with when connecting to<br /># the master - required<br />#master-password =&nbsp; &nbsp;&lt;password&gt;<br />#<br /># The port the master is listening on.<br /># optional - defaults to 3306<br />#master-port&nbsp; &nbsp; &nbsp;=&nbsp; &lt;port&gt;<br />#<br /># binary logging - not required for slaves, but recommended<br />#log-bin=mysql-bin</p><p># Point the following paths to different dedicated disks<br />tmpdir&nbsp; &nbsp; &nbsp; &nbsp; = /var/tmp<br />#log-update&nbsp; &nbsp; &nbsp;= /path-to-dedicated-directory/hostname</p><p># Uncomment the following if you are using BDB tables<br />#bdb_cache_size = 4M<br />#bdb_max_lock = 10000</p><p># Uncomment the following if you are using InnoDB tables<br />#innodb_data_home_dir = /var/lib/mysql/<br />#innodb_data_file_path = ibdata1:10M:autoextend<br />#innodb_log_group_home_dir = /var/lib/mysql/<br />#innodb_log_arch_dir = /var/lib/mysql/<br /># You can set .._buffer_pool_size up to 50 - 80 %<br /># of RAM but beware of setting memory usage too high<br />#innodb_buffer_pool_size = 16M<br />#innodb_additional_mem_pool_size = 2M<br /># Set .._log_file_size to 25 % of buffer pool size<br />#innodb_log_file_size = 5M<br />#innodb_log_buffer_size = 8M<br />#innodb_flush_log_at_trx_commit = 1<br />#innodb_lock_wait_timeout = 50</p><p>#bind-address=192.168.100.1</p><p>## Options for mysqld process:<br />#ndbcluster&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # run NDB engine<br />#ndb-connectstring=192.168.0.10&nbsp; # location of MGM node</p><p>## Options for ndbd process:<br />#[mysql_cluster]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />#ndb-connectstring=192.168.0.10&nbsp; # location of MGM node</p><p>[mysqldump]<br />quick<br />max_allowed_packet = 16M</p><p>[mysql]<br />no-auto-rehash<br /># Remove the next comment character if you are not familiar with SQL<br />#safe-updates<br />default-character-set = utf8</p><p>[isamchk]<br />key_buffer = 20M<br />sort_buffer_size = 20M<br />read_buffer = 2M<br />write_buffer = 2M</p><p>[myisamchk]<br />key_buffer = 20M<br />sort_buffer_size = 20M<br />read_buffer = 2M<br />write_buffer = 2M</p><p>[mysqlhotcopy]<br />interactive-timeout</p><p>[mysql.server]<br />user=mysql<br />basedir=/var/lib</p><p>[mysqld_safe]<br />err-log=/var/log/mysqld/mysqld.log<br />pid-file=/var/run/mysqld/mysqld.pid</p><p># MySQL Instance Manager options section<br />[manager]<br />user=mysql<br />default-mysqld-path=/usr/sbin/mysqld<br />socket=/var/lib/mysql/mysqlmanager.sock<br />pid-file=/var/run/mysqld/mysqlmanager.pid<br />password-file=/etc/mysqlmanager.passwd<br />run-as-service<br />monitoring-interval=20<br />port=2273<br />#bind-address=192.168.100.1</p></div></div>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2011-02-02T20:44:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140017#p140017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140005#p140005" />
			<content type="html"><![CDATA[<p>от имени какого пользователя подключаетесь?.... telnet соединение на этот порт проходит?</p>]]></content>
			<author>
				<name><![CDATA[odin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=7138</uri>
			</author>
			<updated>2011-02-02T20:26:24Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140005#p140005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=140003#p140003" />
			<content type="html"><![CDATA[<p>Давай конфиг. Я файрвол не блочит трафик который идёт на мускул?.</p>]]></content>
			<author>
				<name><![CDATA[kisil]]></name>
				<uri>https://linuxforum.ru/profile.php?id=767</uri>
			</author>
			<updated>2011-02-02T20:25:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=140003#p140003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=139980#p139980" />
			<content type="html"><![CDATA[<p>увы, нет такой возможности проверить... могу только выложить my.cnf и проверять из внешки</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2011-02-02T19:45:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=139980#p139980</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=139700#p139700" />
			<content type="html"><![CDATA[<p>Попробуй сначала подконектитса к мускулу по сети из компа каторый находитса с ним в одной сети. Тогда увидиш, будет ли конект.</p>]]></content>
			<author>
				<name><![CDATA[kisil]]></name>
				<uri>https://linuxforum.ru/profile.php?id=767</uri>
			</author>
			<updated>2011-02-02T06:58:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=139700#p139700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MySQL + доступ из вне?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=139660#p139660" />
			<content type="html"><![CDATA[<p>Прошу сильно ногами не пинать <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br />Установлен мускул, со стандартным портом (3306), слушает сеть (#skip-networking), на роутере порт расшарен и переброшен, при конекте с мускулу через инет получаю такое сообщение (Database connection failed: Host &#039;мой_текущий_IP&#039; is not allowed to connect to this MySQL server). Собственно вопрос - как разрешить мускулу принимать удаленное соединение?</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2011-02-01T21:51:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=139660#p139660</id>
		</entry>
</feed>
