<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Uzaren.com &#187; MySQL</title>
	<atom:link href="http://uzaren.com/ru/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://uzaren.com/ru</link>
	<description></description>
	<lastBuildDate>Fri, 17 Dec 2010 07:08:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Стабильная версия MySQL 5.5</title>
		<link>http://uzaren.com/ru/201012/mysql-stable-release-5/</link>
		<comments>http://uzaren.com/ru/201012/mysql-stable-release-5/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 06:00:40 +0000</pubDate>
		<dc:creator>Uzaren</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Новости]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[MyISAM]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://uzaren.com/ru/?p=172</guid>
		<description><![CDATA[Oracle спустя два года упорных разработок разродилась стабильной версией MySQL 5.5, которая по их словам несет множество приятных изменений.
Предполагается, что операции чтения по скорости станут оптимальней в два раза, другие операции ускорятся примерно в три раза. Движок InnoDB станет движком по умолчанию (вместо MyISAM). Ну и собственно много различных изменений, связанных с производительностью и масштабируемостью [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle спустя два года упорных разработок разродилась стабильной версией MySQL 5.5, которая по их словам несет множество приятных изменений.</p>
<p><span id="more-172"></span>Предполагается, что операции чтения по скорости станут оптимальней в два раза, другие операции ускорятся примерно в три раза. Движок InnoDB станет движком по умолчанию (вместо MyISAM). Ну и собственно много различных изменений, связанных с производительностью и масштабируемостью системы в целом.</p>
]]></content:encoded>
			<wfw:commentRss>http://uzaren.com/ru/201012/mysql-stable-release-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Как сменить пароль в MySQL?</title>
		<link>http://uzaren.com/ru/201008/mysql-assigning-account-passwords/</link>
		<comments>http://uzaren.com/ru/201008/mysql-assigning-account-passwords/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 10:58:47 +0000</pubDate>
		<dc:creator>Uzaren</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://uzaren.com/ru/?p=165</guid>
		<description><![CDATA[В последнее время приходится часто сталкиваться со сменой/установкой паролей для пользователей баз данных. Вот небольшой пример как это можно сделать легко и непринужденно через консоль.
Для того чтобы привязать пароль в момент создания аккаунта при помощи CREATE USER, добавляем IDENTIFIED BY:
mysql&#62; CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
Для установки или изменения пароля пользователя используем SET PASSWORD:
mysql&#62; SET [...]]]></description>
			<content:encoded><![CDATA[<p>В последнее время приходится часто сталкиваться со сменой/установкой паролей для пользователей баз данных. Вот небольшой пример как это можно сделать легко и непринужденно через консоль.</p>
<p><span id="more-165"></span>Для того чтобы привязать пароль в момент создания аккаунта при помощи <strong><a title="12.4.1.1. CREATE USER Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/create-user.html"><code>CREATE USER</code></a></strong>, добавляем <strong><code>IDENTIFIED BY</code></strong>:</p>
<pre>mysql&gt; <strong><code>CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';</code></strong></pre>
<p>Для установки или изменения пароля пользователя используем <strong><a title="12.4.1.6. SET PASSWORD Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/set-password.html"><code>SET PASSWORD</code></a></strong>:</p>
<pre>mysql&gt; <strong><code>SET PASSWORD FOR 'user'@'localhost' = PASSWORD('password');</code></strong></pre>
<p>Только такие пользовати как <strong><code>root</code></strong> имеющие доступ на изменения в базе <strong><code>mysql</code></strong> могут менять пароли для остальных пользователей. Если у вас не анонимное соединение с базой данных, то вы можете сменить свой пароль, исключив пункт <strong><code>FOR</code></strong>:</p>
<pre>mysql&gt; <strong><code>SET PASSWORD = PASSWORD('password');</code></strong></pre>
<blockquote><p>You can also use a <a title="12.4.1.3. GRANT Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/grant.html"><code>GRANT       USAGE</code></a> statement at the global level (<code>ON       *.*</code>) to assign a password to an account without       affecting the account&#8217;s current privileges:</p>
<pre>mysql&gt; <strong><code>GRANT USAGE ON *.* TO 'jeffrey'@'localhost' IDENTIFIED BY 'biscuit';</code></strong></pre>
<p>Passwords can be assigned from the command line by using the       <a title="4.5.2. mysqladmin — Client for Administering a MySQL Server" href="http://dev.mysql.com/doc/refman/5.0/en/mysqladmin.html"><strong>mysqladmin</strong></a> command:</p>
<pre>shell&gt; <strong><code>mysqladmin -u <em><code>user_name</code></em> -h <em><code>host_name</code></em> password "<em><code>newpwd</code></em>"</code></strong></pre>
<p>The account for which this command resets the password is the one       with a <code>user</code> table row that matches       <em><code>user_name</code></em> in the       <code>User</code> column and the client host <em>from       which you connect</em> in the <code>Host</code> column.</p>
<p>Although it is generally preferable to assign passwords using one       of the preceding methods, you can also do so by modifying the       <code>user</code> table directly:</p>
<div>
<ul>
<li>To establish a password when creating a new account, provide a           value for the <code>Password</code> column:
<pre>shell&gt; <strong><code>mysql -u root mysql</code></strong>
mysql&gt; <strong><code>INSERT INTO user (Host,User,Password)</code></strong>
    -&gt; <strong><code>VALUES('localhost','jeffrey',PASSWORD('biscuit'));</code></strong>
mysql&gt; <strong><code>FLUSH PRIVILEGES;</code></strong></pre>
</li>
<li>To change the password for an existing account, use           <a title="12.2.11. UPDATE Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/update.html"><code>UPDATE</code></a> to set the           <code>Password</code> column value:
<pre>shell&gt; <strong><code>mysql -u root mysql</code></strong>
mysql&gt; <strong><code>UPDATE user SET Password = PASSWORD('bagel')</code></strong>
    -&gt; <strong><code>WHERE Host = 'localhost' AND User = 'francis';</code></strong>
mysql&gt; <strong><code>FLUSH PRIVILEGES;</code></strong></pre>
</li>
</ul>
</div>
<p>When you assign passwords using <a title="12.4.1.1. CREATE USER Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/create-user.html"><code>CREATE       USER</code></a> or <a title="12.4.1.3. GRANT Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/grant.html"><code>GRANT</code></a> with an       <code>IDENTIFIED BY</code> clause or with the       <a title="4.5.2. mysqladmin — Client for Administering a MySQL Server" href="http://dev.mysql.com/doc/refman/5.0/en/mysqladmin.html"><strong>mysqladmin password</strong></a> command, they take care of       encrypting the password for you.</p>
<p>When you assign an account a nonempty password using       <a title="12.4.1.6. SET PASSWORD Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/set-password.html"><code>SET PASSWORD</code></a>,       <a title="12.2.5. INSERT Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/insert.html"><code>INSERT</code></a>, or       <a title="12.2.11. UPDATE Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/update.html"><code>UPDATE</code></a>, you must use the       <a href="http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html#function_password"><code>PASSWORD()</code></a> function to encrypt the       password. <a href="http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html#function_password"><code>PASSWORD()</code></a> is necessary       because the <code>user</code> table stores passwords in       encrypted form, not as plaintext. If you forget that fact, you are       likely to set passwords like this:</p>
<pre>shell&gt; <strong><code>mysql -u root mysql</code></strong>
mysql&gt; <strong><code>INSERT INTO user (Host,User,Password)</code></strong>
    -&gt; <strong><code>VALUES('localhost','jeffrey','biscuit');</code></strong>
mysql&gt; <strong><code>FLUSH PRIVILEGES;</code></strong></pre>
<p>The result is that the literal value <code>'biscuit'</code> is stored as the password in the <code>user</code> table,       not the encrypted value. When <code>jeffrey</code> attempts       to connect to the server using this password, the value is       encrypted and compared to the value stored in the       <code>user</code> table. However, the stored value is the       literal string <code>'biscuit'</code>, so the comparison       fails and the server rejects the connection:</p>
<pre>shell&gt; <strong><code>mysql -u jeffrey -pbiscuit test</code></strong>
Access denied</pre>
<div>
<div>Note</div>
</div>
<p><a href="http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html#function_password"><code>PASSWORD()</code></a> encryption differs         from Unix password encryption. See <a title="5.5.1. User Names and Passwords" href="http://dev.mysql.com/doc/refman/5.0/en/user-names.html">Section 5.5.1, “User Names and Passwords”</a>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://uzaren.com/ru/201008/mysql-assigning-account-passwords/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Смена ROOT-пароля в MySQL.</title>
		<link>http://uzaren.com/ru/201006/mysql-root-change-password/</link>
		<comments>http://uzaren.com/ru/201006/mysql-root-change-password/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 13:25:12 +0000</pubDate>
		<dc:creator>Uzaren</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[grant]]></category>
		<category><![CDATA[mysqld]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[privileges]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[пароль]]></category>
		<category><![CDATA[сервис]]></category>

		<guid isPermaLink="false">http://uzaren.com/ru/?p=81</guid>
		<description><![CDATA[Небольшая инструкция по смене root&#8217;ового пароля в MySQL. Необходимы права для перезапуска mysqld сервиса и доступ к командной строке.


Останавливаем mysqld сервис.
Стартуем mysqld сервис с опцией  &#8211;skip-grant-tables.
Запускаем mysql клиент под пользователем root: mysql -u root
Выполняем запрос:  UPDATE mysql.user SET Password=PASSWORD(&#8216;password&#8217;) WHERE User=&#8217;root&#8217;;
Выполняем команду: FLUSH PRIVILEGES;

Пароль изменен.
]]></description>
			<content:encoded><![CDATA[<p>Небольшая инструкция по смене root&#8217;ового пароля в MySQL. Необходимы права для перезапуска mysqld сервиса и доступ к командной строке.</p>
<p><span id="more-81"></span></p>
<ol>
<li>Останавливаем <strong>mysqld</strong> сервис.</li>
<li>Стартуем <strong>mysqld</strong> сервис с опцией  <strong>&#8211;skip-grant-tables</strong>.</li>
<li>Запускаем <strong>mysql</strong> клиент под пользователем <strong>root</strong>: <strong>mysql -u root</strong></li>
<li>Выполняем запрос:  <span style="color: #808000;"><strong>UPDATE mysql.user SET Password=PASSWORD(&#8216;password&#8217;) WHERE User=&#8217;root&#8217;;</strong></span></li>
<li>Выполняем команду: <span style="color: #808000;"><strong>FLUSH PRIVILEGES;</strong></span></li>
</ol>
<p>Пароль изменен.</p>
]]></content:encoded>
			<wfw:commentRss>http://uzaren.com/ru/201006/mysql-root-change-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

