<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Mysql Database Server Installation and Configuration in Ubuntu</title>
	<atom:link href="http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Thu, 19 Nov 2009 13:24:32 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Grant</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-3420</link>
		<dc:creator>Grant</dc:creator>
		<pubDate>Fri, 24 Jul 2009 15:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-3420</guid>
		<description>Hello,

How are you logging into mysql.  Is it something like this?

$ mysql -u root -p</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>How are you logging into mysql.  Is it something like this?</p>
<p>$ mysql -u root -p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Taylor</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-3414</link>
		<dc:creator>Simon Taylor</dc:creator>
		<pubDate>Thu, 23 Jul 2009 18:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-3414</guid>
		<description>Hi,

I get the same error:
mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@&#039;localhost’ (using password: NO)’

Don&#039;t get it!

Cheers</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I get the same error:<br />
mysqladmin: connect to server at ‘localhost’ failed<br />
error: ‘Access denied for user ‘root’@&#8217;localhost’ (using password: NO)’</p>
<p>Don&#8217;t get it!</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grant</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-2883</link>
		<dc:creator>Grant</dc:creator>
		<pubDate>Wed, 06 May 2009 13:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-2883</guid>
		<description>Hello

I am getting some errors that I cannot understand/resolve:

I am trying to reset the root password for mysql and this happens 

mysqladmin: connect to server at &#039;localhost&#039; failed
error: &#039;Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: NO)&#039;

How do I fix this.</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I am getting some errors that I cannot understand/resolve:</p>
<p>I am trying to reset the root password for mysql and this happens </p>
<p>mysqladmin: connect to server at &#8216;localhost&#8217; failed<br />
error: &#8216;Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)&#8217;</p>
<p>How do I fix this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabindra</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-2728</link>
		<dc:creator>Rabindra</dc:creator>
		<pubDate>Wed, 15 Apr 2009 09:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-2728</guid>
		<description>thanks for the solution</description>
		<content:encoded><![CDATA[<p>thanks for the solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-2574</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Wed, 18 Mar 2009 22:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-2574</guid>
		<description>Thanx!!! It almost worked... BUT I have a problem: after I configured directory privileges and apparmor and MYSQL conf file - everything seems to work fine. BUT the problem is - I can not create NEW DATABASES  - it tells me error#13. Does anybody know something about this problem?

Thanks in advance! :)</description>
		<content:encoded><![CDATA[<p>Thanx!!! It almost worked&#8230; BUT I have a problem: after I configured directory privileges and apparmor and MYSQL conf file &#8211; everything seems to work fine. BUT the problem is &#8211; I can not create NEW DATABASES  &#8211; it tells me error#13. Does anybody know something about this problem?</p>
<p>Thanks in advance! <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Somnuk</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-116</link>
		<dc:creator>Somnuk</dc:creator>
		<pubDate>Tue, 16 Dec 2008 07:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-116</guid>
		<description>Greate nickrud, you really help me.</description>
		<content:encoded><![CDATA[<p>Greate nickrud, you really help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergey</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-115</link>
		<dc:creator>sergey</dc:creator>
		<pubDate>Thu, 04 Dec 2008 10:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-115</guid>
		<description>Thanks! It works!!!</description>
		<content:encoded><![CDATA[<p>Thanks! It works!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarang</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-114</link>
		<dc:creator>sarang</dc:creator>
		<pubDate>Fri, 19 Sep 2008 21:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-114</guid>
		<description>Hey

One of our application developer requested to change the ownership of my.cnf file from root to mysql user and mysql group.

I was thinking about it could not think of any reason why I cannot do this.

Would this be ok or is there a reason why we shoulc have /etc/my.cnf owned by root.

Let me know.
Thanks,
SArang</description>
		<content:encoded><![CDATA[<p>Hey</p>
<p>One of our application developer requested to change the ownership of my.cnf file from root to mysql user and mysql group.</p>
<p>I was thinking about it could not think of any reason why I cannot do this.</p>
<p>Would this be ok or is there a reason why we shoulc have /etc/my.cnf owned by root.</p>
<p>Let me know.<br />
Thanks,<br />
SArang</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HaC&#124;away</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-113</link>
		<dc:creator>HaC&#124;away</dc:creator>
		<pubDate>Wed, 03 Sep 2008 12:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-113</guid>
		<description>Another thing you should not forget is to restart /etc/init.d/apparmor after changing the /etc/apparmor.d/usr.sbin.mysqld file. I wondered why it did not work ;)</description>
		<content:encoded><![CDATA[<p>Another thing you should not forget is to restart /etc/init.d/apparmor after changing the /etc/apparmor.d/usr.sbin.mysqld file. I wondered why it did not work <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Chua</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-112</link>
		<dc:creator>Chris Chua</dc:creator>
		<pubDate>Thu, 07 Aug 2008 21:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-112</guid>
		<description>Thank you so so so so soooo much, nickrud. Your comment saved me. I&#039;ve been trying this for the past 3 hours and it&#039;s 5am (over here) now. I wonder where to look for such gotchas like that... How would a newbie like me know about apparmor? It&#039;s even a standard and I had no clue it existed...</description>
		<content:encoded><![CDATA[<p>Thank you so so so so soooo much, nickrud. Your comment saved me. I&#8217;ve been trying this for the past 3 hours and it&#8217;s 5am (over here) now. I wonder where to look for such gotchas like that&#8230; How would a newbie like me know about apparmor? It&#8217;s even a standard and I had no clue it existed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nickrud</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-111</link>
		<dc:creator>nickrud</dc:creator>
		<pubDate>Sat, 12 Jul 2008 17:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-111</guid>
		<description>Since apparmor is now standard in ubuntu (at least since hardy, which is the release I&#039;m working with now) you will also have to make a change to /etc/apparmor/apparmor.d/usr.sbin.mysqld as well in order to change the datadir. I needed to add the lines

  /home/mysql/ r,
  /home/mysql/** rwk,

to enable the correct access permissions to the new data directory.</description>
		<content:encoded><![CDATA[<p>Since apparmor is now standard in ubuntu (at least since hardy, which is the release I&#8217;m working with now) you will also have to make a change to /etc/apparmor/apparmor.d/usr.sbin.mysqld as well in order to change the datadir. I needed to add the lines</p>
<p>  /home/mysql/ r,<br />
  /home/mysql/** rwk,</p>
<p>to enable the correct access permissions to the new data directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-110</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Tue, 10 Apr 2007 15:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-110</guid>
		<description>you need to make sure you have vi editor installed in your machine otherwise install vi using the following command

#apt-get install vim

Now you need to edit the file using the following command

sudo vi /etc/mysql/my.cnf

If you install mysql in debian or ubuntu from packages you will find the above file without any problem.

Please give us which operating system you are running and how did you installed mysql server in your machine.</description>
		<content:encoded><![CDATA[<p>you need to make sure you have vi editor installed in your machine otherwise install vi using the following command</p>
<p>#apt-get install vim</p>
<p>Now you need to edit the file using the following command</p>
<p>sudo vi /etc/mysql/my.cnf</p>
<p>If you install mysql in debian or ubuntu from packages you will find the above file without any problem.</p>
<p>Please give us which operating system you are running and how did you installed mysql server in your machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanya</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-109</link>
		<dc:creator>Tanya</dc:creator>
		<pubDate>Tue, 10 Apr 2007 12:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-109</guid>
		<description>why can not I use
sudo /etc/mysql/my.cnf

and I have /etc/my.cnf
so I used
sudo /etc/my.cnf
it said command not found

I did not find “datadir = /var/lib/mysql” in the file my.cnf either.

I want to change the directory of the database, because not enough disk space left.
anybody knows , Please help me, Thanks a lot.</description>
		<content:encoded><![CDATA[<p>why can not I use<br />
sudo /etc/mysql/my.cnf</p>
<p>and I have /etc/my.cnf<br />
so I used<br />
sudo /etc/my.cnf<br />
it said command not found</p>
<p>I did not find “datadir = /var/lib/mysql” in the file my.cnf either.</p>
<p>I want to change the directory of the database, because not enough disk space left.<br />
anybody knows , Please help me, Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lois</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-108</link>
		<dc:creator>Lois</dc:creator>
		<pubDate>Mon, 06 Nov 2006 20:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-108</guid>
		<description>Yeah!!! you&#039;re my hero! my problem was the direcotri privilegies in the new datadir; but that&#039;s it with the chown -R mysql:mysql.
Do it after copying the files.

Thanks for all!</description>
		<content:encoded><![CDATA[<p>Yeah!!! you&#8217;re my hero! my problem was the direcotri privilegies in the new datadir; but that&#8217;s it with the chown -R mysql:mysql.<br />
Do it after copying the files.</p>
<p>Thanks for all!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-107</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Mon, 06 Nov 2006 12:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-107</guid>
		<description>Hi Lois,

Here is the procedure how to change Mysql default data directory

By default, MySQL&#039;s datadir is placed in the /var/lib/mysql directory.

Create the directory that will be new datadir (ex:-/home/db)

chown the directory to the mysql:mysql user

sudo chown -R mysql:mysql /home/db/*

You need to stop the mysql server using the following command

sudo /etc/init.d/mysql stop

Now you need to edit the /etc/mysql/my.cnf file

sudo vi /etc/mysql/my.cnf

and look for &quot;datadir = /var/lib/mysql&quot; this si where mysql database default data directory here you need to change this one to your new directory

datadir = /home/db

copy the files from the old datadir to the new location. However, make sure that the files named
ib_arch_log_0000000000, ib_logfile0 etc. are not copied to the newer location.

Make sure that the files and directories are owned by mysql user

Make changes in the my.cnf to point the new datadir.

Restart the MySQL database

sudo /etc/init.d/mysql start

hope this helps</description>
		<content:encoded><![CDATA[<p>Hi Lois,</p>
<p>Here is the procedure how to change Mysql default data directory</p>
<p>By default, MySQL&#8217;s datadir is placed in the /var/lib/mysql directory.</p>
<p>Create the directory that will be new datadir (ex:-/home/db)</p>
<p>chown the directory to the mysql:mysql user</p>
<p>sudo chown -R mysql:mysql /home/db/*</p>
<p>You need to stop the mysql server using the following command</p>
<p>sudo /etc/init.d/mysql stop</p>
<p>Now you need to edit the /etc/mysql/my.cnf file</p>
<p>sudo vi /etc/mysql/my.cnf</p>
<p>and look for &#8220;datadir = /var/lib/mysql&#8221; this si where mysql database default data directory here you need to change this one to your new directory</p>
<p>datadir = /home/db</p>
<p>copy the files from the old datadir to the new location. However, make sure that the files named<br />
ib_arch_log_0000000000, ib_logfile0 etc. are not copied to the newer location.</p>
<p>Make sure that the files and directories are owned by mysql user</p>
<p>Make changes in the my.cnf to point the new datadir.</p>
<p>Restart the MySQL database</p>
<p>sudo /etc/init.d/mysql start</p>
<p>hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lois</title>
		<link>http://www.debianadmin.com/mysql-database-server-installation-and-configuration-in-ubuntu.html/comment-page-1#comment-106</link>
		<dc:creator>Lois</dc:creator>
		<pubDate>Mon, 06 Nov 2006 12:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/43.html#comment-106</guid>
		<description>Hi!
I have installed mysql server on my Ubuntu Desktop; and works fine, but I want to change de mysql datadir. Do yo know how can I change that? If I edit my.conf the line datadir for my directori, mysql never restarts.
The new datadir is with the same permissions, and content.

Any ideas? Wy in apache is easy to change but in mysql not?</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I have installed mysql server on my Ubuntu Desktop; and works fine, but I want to change de mysql datadir. Do yo know how can I change that? If I edit my.conf the line datadir for my directori, mysql never restarts.<br />
The new datadir is with the same permissions, and content.</p>
<p>Any ideas? Wy in apache is easy to change but in mysql not?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
