<?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>Java never die &#187; mysql</title>
	<atom:link href="http://www.javaneverdie.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javaneverdie.com</link>
	<description>Java modern frameworks. But not only.</description>
	<lastBuildDate>Fri, 27 Aug 2010 20:25:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MySQL on Windows Access denied for user &#8216;root&#8217;@&#039;localhost&#8217; (using password: NO)</title>
		<link>http://www.javaneverdie.com/mysql/mysql-on-windows-access-denied-for-user-rootlocalhost-using-password-no/</link>
		<comments>http://www.javaneverdie.com/mysql/mysql-on-windows-access-denied-for-user-rootlocalhost-using-password-no/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 22:04:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.javaneverdie.com/?p=429</guid>
		<description><![CDATA[I use MySQL 5.1 &#8216;on localhost&#8217; commonly for wordpress development. Today started new project and attempted to design database using MySQL Control Center, Navicat, command line mysql client and all time get this fucking annoying Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO) Who is fault? No matter. Probably, because of my root user doesn&#8217;t [...]


Related posts:<ol><li><a href='http://www.javaneverdie.com/mysql/how-to-copy-content-from-one-database-to-another/' rel='bookmark' title='Permanent Link: How to copy content from one database to another'>How to copy content from one database to another</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I use MySQL 5.1 &#8216;on localhost&#8217; commonly for wordpress development. Today started new project and attempted to design database using MySQL Control Center, Navicat, command line mysql client and all time get this <del datetime="2010-02-10T21:39:45+00:00">fucking</del> annoying</p>
<h2>Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)</h2>
<p>Who is fault? No matter. Probably, because of my root user doesn&#8217;t  have password.</p>
<p>What to do? Finally i did next:</p>
<p><span id="more-429"></span></p>
<p>1. Stopped mysql server: i simply found mysqld process in windows task manager and stopped it.<br />
2. Created <strong>init.txt </strong> file with next content:</p>
<p><strong>UPDATE mysql.user SET Password=PASSWORD(&#8216;mypassword&#8217;) WHERE User=&#8217;root&#8217;;<br />
FLUSH PRIVILEGES;<br />
grant all privileges on *.* to root@localhost identified by &#8216;mypassword&#8217; with grant option;<br />
grant all privileges on mydatabase.* to root@localhost identified by &#8216;mypassword&#8217; with grant option;<br />
</strong></p>
<p>3. Run mysql server from command line as:</p>
<p><strong>mysqld &#8211;init-file=F:\mysql\bin\init.txt</strong></p>
<p>voila</p>


<p>Related posts:<ol><li><a href='http://www.javaneverdie.com/mysql/how-to-copy-content-from-one-database-to-another/' rel='bookmark' title='Permanent Link: How to copy content from one database to another'>How to copy content from one database to another</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.javaneverdie.com/mysql/mysql-on-windows-access-denied-for-user-rootlocalhost-using-password-no/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to copy content from one database to another</title>
		<link>http://www.javaneverdie.com/mysql/how-to-copy-content-from-one-database-to-another/</link>
		<comments>http://www.javaneverdie.com/mysql/how-to-copy-content-from-one-database-to-another/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 15:36:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.javaneverdie.com/?p=380</guid>
		<description><![CDATA[or how to duplicate database For doing this you need: 1. Copy database to file: mysqldump -u username -p password database_to_copy_from &#62; FILE.sql 2. Create new database. I preffered GUI tools like MySQL Control Center. Or use next comands: mysql&#62; CREATE DATABASE &#8221;database_to_copy_to&#8221;; mysql&#62; GRANT ALL PRIVILEGES ON &#8221;database_to_copy_to&#8221;.* TO &#8220;&#8221;username&#8221;&#8221;@&#8221;&#8221;hostname&#8221;&#8221; IDENTIFIED BY &#8220;&#8221;password&#8221;&#8221; mysql&#62; [...]


Related posts:<ol><li><a href='http://www.javaneverdie.com/mysql/mysql-on-windows-access-denied-for-user-rootlocalhost-using-password-no/' rel='bookmark' title='Permanent Link: MySQL on Windows Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)'>MySQL on Windows Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>or</p>
<h2>how to duplicate database</h2>
<p><strong>For doing this you need: </strong></p>
<p><strong><span id="more-380"></span><br />
</strong></p>
<p>1. Copy database to file:</p>
<p><strong>mysqldump -u username -p password database_to_copy_from &gt; FILE.sql </strong></p>
<p>2. Create new database. I preffered GUI tools like MySQL Control Center. Or use next comands:</p>
<p><strong> mysql&gt; CREATE DATABASE &#8221;database_to_copy_to&#8221;;<br />
mysql&gt; GRANT ALL PRIVILEGES ON &#8221;database_to_copy_to&#8221;.* TO &#8220;&#8221;username&#8221;&#8221;@&#8221;&#8221;hostname&#8221;&#8221; IDENTIFIED BY &#8220;&#8221;password&#8221;&#8221;<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; EXIT </strong></p>
<p>3. Copy database from file to new database</p>
<p><strong>mysql -u username -p password database_to_copy_to&lt; FILE.sql</strong></p>


<p>Related posts:<ol><li><a href='http://www.javaneverdie.com/mysql/mysql-on-windows-access-denied-for-user-rootlocalhost-using-password-no/' rel='bookmark' title='Permanent Link: MySQL on Windows Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)'>MySQL on Windows Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.javaneverdie.com/mysql/how-to-copy-content-from-one-database-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
