<?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>mysql command &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/mysql-command/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Wed, 24 Nov 2010 05:57:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>Create A MySQL User Account</title>
		<link>https://lifelinux.com/create-a-mysql-user-account/</link>
					<comments>https://lifelinux.com/create-a-mysql-user-account/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 24 Nov 2010 05:29:27 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[create mysql account]]></category>
		<category><![CDATA[create mysql user]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql command]]></category>
		<category><![CDATA[mysql database server]]></category>
		<category><![CDATA[mysql server]]></category>
		<category><![CDATA[new account on mysql]]></category>
		<category><![CDATA[user accounts on mysql]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=130</guid>

					<description><![CDATA[<p>The MySQL access control system enables you to create MySQL accounts and define what each account can do. The steps bellow to create a new user MySQL account. Step 1: Login MySQL as root mysql -u root -p Step 2: Using GRANT command to create new MySQL account mysql&#62; GRANT ALL ON &#60;database_name&#62;.* TO &#60;new_account&#62;@&#60;server&#62; [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/create-a-mysql-user-account/">Create A MySQL User Account</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>The <strong>MySQL</strong> access control system enables you to create MySQL accounts and define what each account can do. The steps bellow to create a new user MySQL account.<span id="more-130"></span></p>
<h2>Step 1: Login MySQL as root</h2>
<pre>mysql -u root -p
</pre>
<h2>Step 2: Using GRANT command to create new MySQL account</h2>
<pre>mysql&gt;   GRANT ALL ON &lt;database_name&gt;.* TO &lt;new_account&gt;@&lt;server&gt; IDENTIFIED BY '';
</pre>
<p><strong>Example</strong>: I have database called demo and i want to assign all privileges to new account called user1, i will type the following command:</p>
<pre>mysql&gt;   GRANT ALL ON demo.* TO user1@localhost IDENTIFIED BY 'mypassword';
</pre>
<p><strong>Note: </strong>GRANT ALL is means set all privileges to new account. But only on demo database and can&#8217;t access other database. Read more about <a href="http://dev.mysql.com/doc/refman/5.1/en/grant.html#grant-database-privileges" target="_blank">database privileges</a>.</p>
<h2>Step 3: Exit MySQL interface</h2>
<pre>mysql&gt;   exit;
</pre>
<h2>Step 4: Login MySQL with new Account</h2>
<pre>mysql -u &lt;new_account&gt; -p
</pre>
<p>Replace &lt;new_account&gt; by your new account created.</p>
<g:plusone href="https://lifelinux.com/create-a-mysql-user-account/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/create-a-mysql-user-account/">Create A MySQL User Account</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/create-a-mysql-user-account/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Reset The Root Password Of MySQL Server</title>
		<link>https://lifelinux.com/reset-the-root-password-of-mysql-server/</link>
					<comments>https://lifelinux.com/reset-the-root-password-of-mysql-server/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 24 Nov 2010 04:01:31 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql command]]></category>
		<category><![CDATA[mysql password]]></category>
		<category><![CDATA[Recover MySQL password]]></category>
		<category><![CDATA[Recover Password MySQL]]></category>
		<category><![CDATA[restart mysql]]></category>
		<category><![CDATA[start mysql]]></category>
		<category><![CDATA[stop mysql]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=123</guid>

					<description><![CDATA[<p>By default, MySQL server will be installed with root account and password is blank. If you have set the password for root and forget it, then you will need to reset the root password for MySQL. This topic has detail steps on how to reset password for root on MySQL Server. Step 1: Stop MySQL [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/reset-the-root-password-of-mysql-server/">Reset The Root Password Of MySQL Server</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>By default, MySQL server will be installed with root account and password is blank. If you have set the password for root and forget it, then you will need to reset the root password for MySQL.<span id="more-123"></span></p>
<p>This topic has detail steps on how to reset password for root on MySQL Server.</p>
<h2>Step 1: Stop MySQL service</h2>
<pre>
service mysqld stop
</pre>
<h2>Step 2: Start MySQL with mysql-safe command</h2>
<pre>
mysql-safe --skip-grant-tables &amp;
</pre>
<p>&#8211;skip-grant-tables is a option to enable anyone connect MySQL Server without password and with all privileges.</p>
<h2>Step 3: Connect MySQL with root account and blank password</h2>
<pre>
mysql -u root -p
</pre>
<h2>Step 4: Change password for root account</h2>
<pre>
mysql&gt;   UPDATE mysql.user SET password = PASSWORD('NEW_PASSWORD') WHERE User = 'root';
mysql&gt;   FLUSH PRIVILEGES;
mysql&gt;   exit;
</pre>
<h2>Step 5: Restart MySQL</h2>
<pre>
service mysqld restart
</pre>
<g:plusone href="https://lifelinux.com/reset-the-root-password-of-mysql-server/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/reset-the-root-password-of-mysql-server/">Reset The Root Password Of MySQL Server</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/reset-the-root-password-of-mysql-server/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
