<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Knocked Out Before The Bell Rang</title>
	<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang/</link>
	<description>Comments on Ask MetaFilter post Knocked Out Before The Bell Rang</description>
	<pubDate>Tue, 16 May 2006 07:24:40 -0800</pubDate>
	<lastBuildDate>Tue, 16 May 2006 07:24:40 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Knocked Out Before The Bell Rang</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang</link>	
		<description>I&apos;m encountering what I imagine is an entirely rudimentary SQL error, but am baffled as to how to solve it. &lt;br /&gt;&lt;br /&gt; I&apos;ve just installed MySQL 4.1.18-standard on my Mac (10.4.6) to work along with David Heinemeier Hansson&apos;s _Agile Web Development with Rails_. I&apos;m absolutely new to MySQL and Ruby, and right out of the box (literally, like the fourth page after things really start getting instructive) I&apos;ve encountered the following error after the command &lt;i&gt;mysql -u root -p&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
&lt;i&gt;ERROR 1045 (28000): Access denied for user &apos;root&apos;@&apos;localhost&apos; (using password: YES)&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
During installation I never set a password. I&apos;ve input &apos;admin&apos;, &apos;root&apos; and other guesses in as the password - the error is always the same. If I provide a carriage return without entering anything, the error changes slightly:&lt;br&gt;
&lt;br&gt;
&lt;i&gt;ERROR 1045 (28000): Access denied for user &apos;root&apos;@&apos;localhost&apos; (using password: NO)&lt;/i&gt; &lt;br&gt;
&lt;br&gt;
I&apos;ve found interesting stuff by searching, but some sources seem to contradict others, or take for granted an expertise I don&apos;t possess - I have absolutely no background in MySQL or the command line. I&apos;m looking for absolutely thorough and remedial steps for remedying this problem.&lt;br&gt;
&lt;br&gt;
Local delicacies happily mailed to the home of the kind soul that gets me through this.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.38276</guid>
		<pubDate>Tue, 16 May 2006 07:18:36 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
		
			<category>ruby</category>
		
			<category>rails</category>
		
			<category>rubyonrails</category>
		
			<category>mysql</category>
		
			<category>mac</category>
		
			<category>apple</category>
		
			<category>osx</category>
		
	</item> <item>
		<title>By: justkevin</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591892</link>	
		<description>Did you try &quot;mysql -u root&quot; without the -p switch?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591892</guid>
		<pubDate>Tue, 16 May 2006 07:24:40 -0800</pubDate>
		<dc:creator>justkevin</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591897</link>	
		<description>I have. It pops back an error similar (I&apos;m not in front of my computer) to the second one listed:&lt;br&gt;
&lt;i&gt;ERROR 1045 (28000): Access denied for user &apos;root&apos;@&apos;localhost&apos; (using password: NO)&lt;/i&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591897</guid>
		<pubDate>Tue, 16 May 2006 07:37:51 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: McGuillicuddy</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591900</link>	
		<description>Ahhh, the old MySQL default password problem. It will get you everytime (at least it gets me and I have to lookup the answer).&lt;br&gt;
&lt;br&gt;
I&apos;d start &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html&quot;&gt;here&lt;/a&gt;:&lt;br&gt;
&lt;br&gt;
From the link:&lt;br&gt;
&lt;br&gt;
For Windows, do this:&lt;br&gt;
&lt;br&gt;
shell&amp;gt; mysql -u root&lt;br&gt;
mysql&amp;gt; SET PASSWORD FOR &apos;root&apos;@&apos;localhost&apos; = PASSWORD(&apos;newpwd&apos;);&lt;br&gt;
mysql&amp;gt; SET PASSWORD FOR &apos;root&apos;@&apos;%&apos; = PASSWORD(&apos;newpwd&apos;);&lt;br&gt;
&lt;br&gt;
For Unix, do this:&lt;br&gt;
&lt;br&gt;
shell&amp;gt; mysql -u root&lt;br&gt;
mysql&amp;gt; SET PASSWORD FOR &apos;root&apos;@&apos;localhost&apos; = PASSWORD(&apos;newpwd&apos;);&lt;br&gt;
mysql&amp;gt; SET PASSWORD FOR &apos;root&apos;@&apos;host_name&apos; = PASSWORD(&apos;newpwd&apos;);&lt;br&gt;
&lt;br&gt;
In the second SET PASSWORD statement, replace host_name with the name of the server host. This is the same hostname that you used when you assigned the anonymous account passwords.&lt;br&gt;
&lt;br&gt;
To assign passwords to the root accounts using mysqladmin, execute the following commands:&lt;br&gt;
&lt;br&gt;
shell&amp;gt; mysqladmin -u root password &quot;newpwd&quot;&lt;br&gt;
shell&amp;gt; mysqladmin -u root -h host_name password &quot;newpwd&quot;&lt;br&gt;
&lt;br&gt;
These commands apply both to Windows and to Unix. In the second command, replace host_name with the name of the server host. The double quotes around the password are not always necessary, but you should use them if the password contains spaces or other characters that are special to your command interpreter.&lt;br&gt;
&lt;br&gt;
You can also use UPDATE to modify the user table directly. The following UPDATE statement assigns a password to both root accounts at once:&lt;br&gt;
&lt;br&gt;
shell&amp;gt; mysql -u root&lt;br&gt;
mysql&amp;gt; UPDATE mysql.user SET Password = PASSWORD(&apos;newpwd&apos;)&lt;br&gt;
    -&amp;gt;     WHERE User = &apos;root&apos;;&lt;br&gt;
mysql&amp;gt; FLUSH PRIVILEGES;&lt;br&gt;
&lt;br&gt;
The UPDATE statement applies both to Windows and to Unix.&lt;br&gt;
&lt;br&gt;
After the passwords have been set, you must supply the appropriate password whenever you connect to the server.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591900</guid>
		<pubDate>Tue, 16 May 2006 07:39:57 -0800</pubDate>
		<dc:creator>McGuillicuddy</dc:creator>
	</item><item>
		<title>By: BioCSnerd</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591901</link>	
		<description>My guess is that you probably skipped any setup involved with MySQL.  You should probably go through this part of the &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html&quot;&gt;MySQL Reference Book&lt;/a&gt; to secure the initial accounts.&lt;br&gt;
&lt;br&gt;
Also, in OS X you have to specify the username/password combo in your /config/database.yml file.  You should probably not use the root username/password for your database.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591901</guid>
		<pubDate>Tue, 16 May 2006 07:40:06 -0800</pubDate>
		<dc:creator>BioCSnerd</dc:creator>
	</item><item>
		<title>By: amery</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591917</link>	
		<description>The problem with most approaches to this is that you need to connect as the root mysql user in order to change the password of the root mysql user.  It seems like a catch 22.&lt;br&gt;
&lt;br&gt;
But you can get around it because you have root access to your box.  This lets you stop and start the MySQL process.  On startup, you can tell it to let anyone in without checking their ID at the door.&lt;br&gt;
&lt;br&gt;
I don&apos;t have MySQL on my mac, sadly, so the exact commands I give you might need some fudge.  But here&apos;s what you need to do within a small margin of error.&lt;br&gt;
&lt;br&gt;
First, stop the mysql process.  Open a terminal, type&lt;br&gt;
&lt;br&gt;
sudo su -&lt;br&gt;
&lt;br&gt;
and give your user password to become root.  Then do a&lt;br&gt;
&lt;br&gt;
killall mysql&lt;br&gt;
&lt;br&gt;
that should shut down all mysql processes.  You can check this my doing a&lt;br&gt;
&lt;br&gt;
ps -auxw | grep mysql&lt;br&gt;
&lt;br&gt;
If nothing show&apos;s up you&apos;re all set.  Next find the mysql startup script on your mac.  I don&apos;t know where it is, so here&apos;s some fudge.  You&apos;ll want to run it from the command line, and pass it the &apos;skip grant tables&apos; option like so:&lt;br&gt;
&lt;br&gt;
/path/to/script/your-startup-script-name --skip-grant-tables&lt;br&gt;
&lt;br&gt;
(On my Unix box this would be &apos;/etc/init.d/mysql --skip-grant-tables&apos;, though it is certainly different for you).  Then you should be able to connect to mysql as root and follow the steps in McGuillicuddy&apos;s link.  Sorry I can&apos;t give you exact commands.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591917</guid>
		<pubDate>Tue, 16 May 2006 08:16:06 -0800</pubDate>
		<dc:creator>amery</dc:creator>
	</item><item>
		<title>By: moift</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591928</link>	
		<description>There&apos;s a variation on the stop service/special init method I used when I forgot my root password described in the MySQL manual: &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html&quot;&gt;Resetting Permissions.&lt;/a&gt;   Give it a shot if amery&apos;s method doesn&apos;t work for you, although it looks like it should.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591928</guid>
		<pubDate>Tue, 16 May 2006 08:26:27 -0800</pubDate>
		<dc:creator>moift</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591966</link>	
		<description>Would I be able to edit the file BioCSnerd &lt;a href=&quot;#591901&quot;&gt;refers to&lt;/a&gt; with BBEdit, or should I take the amery/McGuillicuddy hybrid approach?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591966</guid>
		<pubDate>Tue, 16 May 2006 09:09:35 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: empath</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591986</link>	
		<description>Or you can just uninstall mysql and re-install it again :)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591986</guid>
		<pubDate>Tue, 16 May 2006 09:32:26 -0800</pubDate>
		<dc:creator>empath</dc:creator>
	</item><item>
		<title>By: empath</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591987</link>	
		<description>(taking care to note what you set your root password to be, of course)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591987</guid>
		<pubDate>Tue, 16 May 2006 09:32:50 -0800</pubDate>
		<dc:creator>empath</dc:creator>
	</item><item>
		<title>By: BioCSnerd</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#591989</link>	
		<description>&lt;a href=&quot;http://ask.metafilter.com/mefi/38276#591966&quot;&gt;re.&lt;/a&gt; Absolutely.  database.yml is just a flat text file.  I use TextMate personally, but BBEdit will handle it just fine.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-591989</guid>
		<pubDate>Tue, 16 May 2006 09:34:37 -0800</pubDate>
		<dc:creator>BioCSnerd</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592125</link>	
		<description>amery, re: the MySQL startup script, it seems from your comment that I&apos;d be looking for a file named &lt;i&gt;mysql&lt;/i&gt;. Is that the case?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592125</guid>
		<pubDate>Tue, 16 May 2006 11:21:17 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592421</link>	
		<description>Amery,&lt;br&gt;
Also, after executing &lt;i&gt;ps -auxw | grep mysql&lt;/i&gt; the following is returned. Your instructions seemed indicate that nothing should been returned. &lt;br&gt;
&lt;blockquote&gt;root       357   0.0 -0.0    27804    656  ??  S     8:11PM   0:00.03 /bin/sh ./bin/mysqld_safe --datadir=/usr/local/mysql/data --pi&lt;br&gt;
&lt;br&gt;
mysql      376   0.0 -0.6    61644  13136  ??  S     8:11PM   0:00.64 /usr/local/mysql/bin/mysqld --defaults-extra-file=/usr/local/m&lt;br&gt;
&lt;br&gt;
root       453   0.0 -0.0    27368    424  p1  S+    8:28PM   0:00.01 grep mysql&lt;/blockquote&gt;Why is this being returned?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592421</guid>
		<pubDate>Tue, 16 May 2006 17:32:18 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: amery</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592435</link>	
		<description>Because mysqld_safe is a process that looks to see if mysql is running, and if it isn&apos;t, it starts up again.  Try doing a&lt;br&gt;
&lt;br&gt;
sudo killall -9 mysqld_save&lt;br&gt;
sudo killall -9 mysqld&lt;br&gt;
&lt;br&gt;
and then do the &lt;br&gt;
&lt;br&gt;
ps -auxw | grep mysql&lt;br&gt;
&lt;br&gt;
again.  I&apos;d foolishly forgotten that it will indeed return one result, namely itself (like your third line above).&lt;br&gt;
&lt;br&gt;
Then, as root, do a&lt;br&gt;
&lt;br&gt;
/usr/local/mysql/bin/mysqld --skip-grant-tables.&lt;br&gt;
&lt;br&gt;
That should work for you.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592435</guid>
		<pubDate>Tue, 16 May 2006 17:51:05 -0800</pubDate>
		<dc:creator>amery</dc:creator>
	</item><item>
		<title>By: amery</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592436</link>	
		<description>Er, the first killall should be &lt;br&gt;
&lt;br&gt;
sudo killall -9 mysqld_safe</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592436</guid>
		<pubDate>Tue, 16 May 2006 17:51:25 -0800</pubDate>
		<dc:creator>amery</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592552</link>	
		<description>McGillicuddy has it; &lt;code&gt;mysqladmin -u root password nEwpAssWord&lt;/code&gt; in Terminal should do the trick if you&apos;ve never set the root password in mysql before.&lt;br&gt;
&lt;br&gt;
Alternatively, just get &lt;a href=&quot;http://locomotive.raaum.org/&quot;&gt;Locomotive&lt;/a&gt; for the love of God. You can learn how to fix the plumbing later, for now you&apos;re just trying to wash your dishes in the sink. Or something like that.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592552</guid>
		<pubDate>Tue, 16 May 2006 20:34:33 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592554</link>	
		<description>You might have to prefix that with &lt;code&gt;sudo&lt;/code&gt;, I imagine.&lt;br&gt;
&lt;br&gt;
So &lt;code&gt;sudo mysqladmin -u root password nEWpASsWOrd&lt;/code&gt;, and your mac will request your account&apos;s password.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592554</guid>
		<pubDate>Tue, 16 May 2006 20:37:40 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: primer_dimer</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592727</link>	
		<description>Just to second &lt;strong&gt;moift&lt;/strong&gt;&apos;s link; I&apos;ve been installing mysql on a FC5 server and that set of instructions was the only thing that allowed me to get off the ground.  I feel your pain.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592727</guid>
		<pubDate>Wed, 17 May 2006 04:36:25 -0800</pubDate>
		<dc:creator>primer_dimer</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592882</link>	
		<description>evariste, I&apos;ll try &lt;i&gt;mysqladmin -u root password nEwpAssWord&lt;/i&gt; first, it&apos;s certainly simpler.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592882</guid>
		<pubDate>Wed, 17 May 2006 08:14:23 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#592883</link>	
		<description>I&apos;d like to take a moment to itemize the Amery/McGuillicudy method, just so I&apos;m clear on the particulars. In this block, since I&apos;m running on my home machine, what is my host_name? &lt;br&gt;
&lt;blockquote&gt;shell&amp;gt;sudo killall -9 mysqld_safe&lt;br&gt;
shell&amp;gt;sudo killall -9 mysqld&lt;br&gt;
shell&amp;gt;ps -auxw | grep mysql&lt;br&gt;
shell&amp;gt;/usr/local/mysql/bin/mysqld --skip-grant-tables.&lt;br&gt;
shell&amp;gt;mysql -u root&lt;br&gt;
mysql&amp;gt;SET PASSWORD FOR &apos;root&apos;@&apos;localhost&apos; = PASSWORD(&apos;newpwd&apos;);&lt;br&gt;
mysql&amp;gt;SET PASSWORD FOR &apos;root&apos;@&apos;host_name&apos; = PASSWORD(&apos;newpwd&apos;);&lt;/blockquote&gt;Have I left anything out, or is this series of inputs the entire process?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-592883</guid>
		<pubDate>Wed, 17 May 2006 08:14:41 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#593589</link>	
		<description>Everiste, &lt;br&gt;
&lt;i&gt;sudo mysqladmin -u root password nEWpASsWOrd&lt;/i&gt; returned&lt;br&gt;
&lt;blockquote&gt;mysqladmin: connect to server at &apos;localhost&apos; failed&lt;br&gt;
error: &apos;Access denied for user &apos;root&apos;@&apos;localhost&apos; (using password: NO)&apos;&lt;/blockquote&gt;Any thoughts?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-593589</guid>
		<pubDate>Wed, 17 May 2006 18:42:34 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#593710</link>	
		<description>Amery,&lt;br&gt;
&lt;i&gt;/usr/local/mysql/bin/mysqld --skip-grant-tables&lt;/i&gt; now returns &lt;br&gt;
&lt;blockquote&gt;060517 23:46:19 [Warning] Can&apos;t create test file /usr/local/mysql-standard-4.1.18-apple-darwin8.2.0-powerpc/data/Home.lower-test&lt;br&gt;
&lt;br&gt;
/usr/local/mysql/bin/mysqld: Can&apos;t change dir to &apos;/usr/local/mysql-standard-4.1.18-apple-darwin8.2.0-powerpc/data/&apos; (Errcode: 13)&lt;br&gt;
&lt;br&gt;
060517 23:46:19 [ERROR] Aborting&lt;br&gt;
&lt;br&gt;
060517 23:46:19 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete&lt;/blockquote&gt;Why would the Terminal be unable to create the files in question, or change the directory?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-593710</guid>
		<pubDate>Wed, 17 May 2006 20:48:41 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#593839</link>	
		<description>boombot-I want to install the same version/distribution of mysql as you on my MacBook and try this for myself. Where did you get it?&lt;br&gt;
&lt;br&gt;
Sorry you&apos;re having such a hard time.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-593839</guid>
		<pubDate>Thu, 18 May 2006 00:04:37 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#593842</link>	
		<description>Well, I&apos;m downloading 4.1.19 from mysql AB&apos;s website. Close enough :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-593842</guid>
		<pubDate>Thu, 18 May 2006 00:13:49 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#593844</link>	
		<description>Straight from the manual:&lt;blockquote&gt;In a Unix environment, the procedure for resetting the root password is as follows: &lt;br&gt;
&lt;br&gt;
Log on to your system as either the Unix root user or as the same user that the mysqld server runs as. &lt;br&gt;
&lt;br&gt;
Locate the .pid file that contains the server&apos;s process ID. The exact location and name of this file depend on your distribution, hostname, and configuration. Common locations are /var/lib/mysql/, /var/run/mysqld/, and /usr/local/mysql/data/. Generally, the filename has the extension of .pid and begins with either mysqld or your system&apos;s hostname. &lt;br&gt;
&lt;br&gt;
You can stop the MySQL server by sending a normal kill (not kill -9) to the mysqld process, using the pathname of the .pid file in the following command: &lt;br&gt;
shell&amp;gt; kill `cat /mysql-data-directory/host_name.pid`&lt;br&gt;
&lt;br&gt;
Note the use of backticks rather than forward quotes with the cat command; these cause the output of cat to be substituted into the kill command. &lt;br&gt;
&lt;br&gt;
Create a text file and place the following command within it on a single line: &lt;br&gt;
SET PASSWORD FOR &apos;root&apos;@&apos;localhost&apos; = PASSWORD(&apos;MyNewPassword&apos;);&lt;br&gt;
&lt;br&gt;
Save the file with any name. For this example the file will be ~/mysql-init. &lt;br&gt;
&lt;br&gt;
Restart the MySQL server with the special --init-file=~/mysql-init option: &lt;br&gt;
shell&amp;gt; mysqld_safe --init-file=~/mysql-init &amp;amp;&lt;br&gt;
&lt;br&gt;
The contents of the init-file are executed at server startup, changing the root password. After the server has started successfully you should delete ~/mysql-init. &lt;br&gt;
&lt;br&gt;
You should be able to connect using the new password.&lt;/blockquote&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-593844</guid>
		<pubDate>Thu, 18 May 2006 00:16:47 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#593952</link>	
		<description>Everiste,&lt;br&gt;
I have tried, and failed, to find the .pid file. Spotlight returns nothing (well it returns lots, but no file with the extension .pid). After installation of 4.1.19, were you able to find the file?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-593952</guid>
		<pubDate>Thu, 18 May 2006 06:16:53 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#595806</link>	
		<description>boombot-I downloaded the disk image but never actually installed it; doing that now.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-595806</guid>
		<pubDate>Sat, 20 May 2006 00:15:39 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#595809</link>	
		<description>boombot-I just installed MySQL, and it seems to be working out pretty good. I installed it, then I started System Preferences and dragged the .prefpane in the .dmg into it to install the Preferences Pane. I started MySQL from there, had to give my OS X account password twice, then went back to Terminal and did &lt;code&gt;/usr/local/mysql/bin/mysql -uroot&lt;/code&gt; and got a &lt;code&gt;mysql&amp;gt;&lt;/code&gt; prompt.&lt;br&gt;
&lt;br&gt;
I don&apos;t know what to suggest you do other than install the same version I did and try to get it going; it seems to be working perfectly for me and I can set the root password if I choose to.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-595809</guid>
		<pubDate>Sat, 20 May 2006 00:25:05 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#595811</link>	
		<description>&lt;code&gt;\q&lt;/code&gt; gets you back out of the mysql prompt when you&apos;re done with it, of course.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-595811</guid>
		<pubDate>Sat, 20 May 2006 00:28:27 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#595814</link>	
		<description>In other words, on installation the password was set to nothing, and I was able to log in to mysql as root with no problem and full rights to do whatever I want. Maybe there&apos;s a bug or misconfiguration-by-default in the version you installed?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-595814</guid>
		<pubDate>Sat, 20 May 2006 00:32:52 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596292</link>	
		<description>Everiste,&lt;br&gt;
How would I uninstall the version I&apos;m currently &quot;running&quot;?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596292</guid>
		<pubDate>Sat, 20 May 2006 19:38:01 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596295</link>	
		<description>boombot-&lt;br&gt;
&lt;br&gt;
&lt;code&gt;cd /usr/local&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo rm mysql&lt;/code&gt; [this deletes the symlink]&lt;br&gt;
&lt;code&gt;sudu rm -rf mysql-&lt;/code&gt; [and then hit tab so your Terminal autocompletes the rest of it (it&apos;s a long name with a version number and such).]</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596295</guid>
		<pubDate>Sat, 20 May 2006 19:41:10 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596298</link>	
		<description>On my system it came out to  &lt;code&gt;sudo rm -rf mysql-standard-4.1.19-apple-darwin8.5.1-i686/&lt;/code&gt; but since you installed a different version, it&apos;ll be some other long string.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596298</guid>
		<pubDate>Sat, 20 May 2006 19:44:11 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596300</link>	
		<description>Thanks for the quick response, and for keeping an eye on this question.&lt;br&gt;
I wanted to confirm that the second command begins with sudu, rather than sudo, and also wanted to ask what website you&apos;re referring to when you mention you got your copy of MySQL 4.1.19 &quot;from mysql AB&apos;s site&quot;?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596300</guid>
		<pubDate>Sat, 20 May 2006 19:44:59 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596301</link>	
		<description>Nope, it&apos;s sudo. I&apos;m an idiot :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596301</guid>
		<pubDate>Sat, 20 May 2006 19:45:22 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596304</link>	
		<description>This one &lt;a href=&quot;http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-standard-4.1.19-apple-darwin8.5.1-i686.dmg/from/http://mirror.x10.com/mirror/mysql/&quot;&gt;right here&lt;/a&gt;, from &lt;a href=&quot;http://dev.mysql.com/downloads/mysql/4.1.html&quot;&gt;this page.&lt;/a&gt; MySQL AB is the German (?) company that wrote MySQL, and mysql.com is their website.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596304</guid>
		<pubDate>Sat, 20 May 2006 19:47:15 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596307</link>	
		<description>If I might ask where you downloaded your version, I&apos;m curious to know...did it perhaps come with the book you bought on CD/DVD?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596307</guid>
		<pubDate>Sat, 20 May 2006 19:50:28 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596310</link>	
		<description>I followed &lt;a href=&quot;http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger&quot;&gt;this&lt;/a&gt;. Speaking of, do I need to do anything to undo the post-MySQL install modifications he lists, which I did do, or will they not factor into anything during the uninstall and reinstall?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596310</guid>
		<pubDate>Sat, 20 May 2006 19:58:49 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596315</link>	
		<description>Nope. The only modification I see on that page is adding mysql to your path. The Ruby mysql package he has you install should work with any version of mysql.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596315</guid>
		<pubDate>Sat, 20 May 2006 20:03:24 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596316</link>	
		<description>&lt;blockquote&gt;The only modification I see on that page is adding mysql to your path.&lt;/blockquote&gt;Which is harmless to leave alone, since it&apos;s using the /usr/local/mysql symlink that will be recreated when you install the 4.1.19 version.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596316</guid>
		<pubDate>Sat, 20 May 2006 20:04:17 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596327</link>	
		<description>Excellent. So, then:&lt;ol&gt;&lt;li&gt;Run the Install Package&lt;/li&gt;&lt;li&gt;Open System Preferences, drag the PrefPane file from the mounted image to the System Preferences window&lt;/li&gt;&lt;li&gt;Start the MySQL Server from the MySQL Preference Pane&lt;/li&gt;&lt;li&gt;I&apos;ll then be prompted to provide my account password&lt;/li&gt;&lt;/ol&gt;How then do I properly set the root password?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596327</guid>
		<pubDate>Sat, 20 May 2006 20:35:54 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596329</link>	
		<description>In Terminal, &lt;br&gt;
&lt;br&gt;
&lt;code&gt;mysql -uroot&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
&lt;code&gt;mysql&amp;gt;SET PASSWORD FOR &apos;root&apos;@&apos;localhost&apos; = PASSWORD(&apos;newpassword&apos;);&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596329</guid>
		<pubDate>Sat, 20 May 2006 20:44:44 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596331</link>	
		<description>Should I delete the existing MYSQL PrefPane? If so, does it matter if I do that before or after the uninstall?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596331</guid>
		<pubDate>Sat, 20 May 2006 20:48:03 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596332</link>	
		<description>Sure, delete it, and it shouldn&apos;t matter whether it was before or after. Right click and remove it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596332</guid>
		<pubDate>Sat, 20 May 2006 20:53:41 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596369</link>	
		<description>By the way, rereading the thread a bit, I saw you asked how to find out what your hostname is. Just type &lt;code&gt;hostname&lt;/code&gt; into your Terminal and it&apos;ll tell you. If you want to change it, click on Sharing in System Preferences and change it there.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596369</guid>
		<pubDate>Sat, 20 May 2006 22:44:31 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596761</link>	
		<description>The uninstall seemed to go well, I entered the commands and removed the PrefPane without incident. After a restart, I then downloaded and installed 4.1.19, which went fine, but I now have an issue with PrefPane.&lt;br&gt;
&lt;br&gt;
I dragged the Pane into the Preferences, and chose to install it only for one user. A dialog box popped up, titled &quot;Preferences Error&quot;, with the text &quot;Could not load MySQL&quot;, with an OK button beneath. The Pane is in place, but this error is all that is returned when I click it. I haven&apos;t tried to do anything from the command line, I thought I would post first. Any thoughts?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596761</guid>
		<pubDate>Sun, 21 May 2006 14:23:10 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596779</link>	
		<description>Hmm...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596779</guid>
		<pubDate>Sun, 21 May 2006 14:48:08 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596782</link>	
		<description>Try starting it from your terminal like this:&lt;code&gt;olivia:~ evariste$ sudo /usr/local/mysql/bin/mysqld_safe &amp;amp;&lt;br&gt;
[1] 1010&lt;br&gt;
olivia:~ evariste$ Starting mysqld daemon with databases from /usr/local/mysql/data &lt;/code&gt;hit enter when you get this message to get your prompt back.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596782</guid>
		<pubDate>Sun, 21 May 2006 14:55:04 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596784</link>	
		<description>&lt;code&gt;[1] 1010&lt;/code&gt; is a reply from the shell, not part of the command.&lt;br&gt;
&lt;br&gt;
So basically, do&lt;br&gt;
&lt;br&gt;
sudo /usr/local/mysql/bin/mysqld_safe &amp;amp;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596784</guid>
		<pubDate>Sun, 21 May 2006 14:56:26 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596789</link>	
		<description>What I&apos;m trying to determine is whether or not you can start the mysql server at all, from the command line. The Pref Pane is &quot;nice&quot; but not essential, and I have no idea why it&apos;s giving you that error.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596789</guid>
		<pubDate>Sun, 21 May 2006 15:02:29 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596791</link>	
		<description>If that works, then try &lt;code&gt;sudo mysql -uroot&lt;/code&gt; next to see if you can log in without a password.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596791</guid>
		<pubDate>Sun, 21 May 2006 15:04:22 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596802</link>	
		<description>&lt;i&gt;sudo /usr/local/mysql/bin/mysqld_safe &amp;amp;&lt;/i&gt; has a reply of&lt;br&gt;
&lt;br&gt;
[1] 312&lt;br&gt;
&lt;br&gt;
and then I&apos;m back to the prompt.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596802</guid>
		<pubDate>Sun, 21 May 2006 15:25:51 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596818</link>	
		<description>Perfect! So now &lt;code&gt;sudo /usr/local/mysql/bin/mysql -uroot&lt;/code&gt;, and you should have a mysql prompt. I&apos;m crossing my fingers that it doesn&apos;t give you the password error.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596818</guid>
		<pubDate>Sun, 21 May 2006 15:43:02 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596830</link>	
		<description>I closed the terminal window. Starting from a new window, do I need to input both commands in succession, or can I now just input the second command?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596830</guid>
		<pubDate>Sun, 21 May 2006 15:51:31 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596834</link>	
		<description>The server should still be running since you started it in the background (that&apos;s what the &amp;amp; at the end of the command was about), so you should be able to just do the second command now.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596834</guid>
		<pubDate>Sun, 21 May 2006 15:55:35 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596843</link>	
		<description>After &lt;i&gt;sudo /usr/local/mysql/bin/mysql -uroot&lt;/i&gt;, I recive the reply&lt;br&gt;
&lt;br&gt;
/usr/local/mysql/bin/mysql: /usr/local/mysql/bin/mysql: cannot execute binary file</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596843</guid>
		<pubDate>Sun, 21 May 2006 16:07:06 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596847</link>	
		<description>Holy crap. Wha?&lt;br&gt;
&lt;br&gt;
Try this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;olivia:~ evariste$ file /usr/local/mysql/bin/mysql&lt;/code&gt; &lt;br&gt;
&lt;br&gt;
and tell me what you see. It should say this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;/usr/local/mysql/bin/mysql: Mach-O executable i386&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596847</guid>
		<pubDate>Sun, 21 May 2006 16:11:55 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596853</link>	
		<description>That does kick back &lt;i&gt;/usr/local/mysql/bin/mysql: Mach-O executable i386&lt;/i&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596853</guid>
		<pubDate>Sun, 21 May 2006 16:14:06 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596856</link>	
		<description>OK, that&apos;s good. Then try this one:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;olivia:~ evariste$ ls -alp /usr/local/mysql/bin/mysql&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
It should return:&lt;br&gt;
&lt;code&gt;-rwxr-xr-x   1 root  wheel  1271176 Apr 30 07:15 /usr/local/mysql/bin/mysql&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596856</guid>
		<pubDate>Sun, 21 May 2006 16:19:36 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596858</link>	
		<description>What I was trying to determine before (with the &lt;code&gt;file&lt;/code&gt; command) was whether or not you had the x86 executable; the only reason I could think of for the &quot;cannot execute binary file&quot; was that you somehow had the wrong kind of binary, perhaps PPC. Now I&apos;m trying to figure out if your binary mysql executable file is the same size as the working file that&apos;s on my system; if it&apos;s not then something went wrong somewhere (and this probably starts to explain why the Pref Pane has an error).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596858</guid>
		<pubDate>Sun, 21 May 2006 16:21:58 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596861</link>	
		<description>That&apos;s returns &lt;i&gt;-rwxr-xr-x   1 root  wheel  1271176 Apr 30 08:15 /usr/local/mysql/bin/mysql&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
But I think the problem is my mistake. Did you link to the Intel binary? I didn&apos;t think to check - I&apos;m running a G5.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596861</guid>
		<pubDate>Sun, 21 May 2006 16:25:57 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596865</link>	
		<description>OMG, I&apos;m sorry. I did link to the Intel binary; I assumed that since &lt;i&gt;I&lt;/i&gt; have an Intel Mac, then of course so do &lt;i&gt;you.&lt;/i&gt; &lt;br&gt;
&lt;br&gt;
I am a moron and I will sacrifice fifty chickens in atonement for wasting your time :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596865</guid>
		<pubDate>Sun, 21 May 2006 16:28:37 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596870</link>	
		<description>No, no, it&apos;s my mistake. I&apos;m a dumbass.&lt;br&gt;
&lt;br&gt;
So, do I uninstall in the same way?&lt;ul&gt;&lt;li&gt;cd /usr/local&lt;/li&gt;&lt;li&gt;sudo rm mysql&lt;/li&gt;&lt;li&gt;sudo rm -rf mysql- [then hit tab]&lt;/li&gt;&lt;li&gt;Ecit the terminal, dump the PrefPane&lt;/li&gt;&lt;/ul&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596870</guid>
		<pubDate>Sun, 21 May 2006 16:33:24 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596871</link>	
		<description>To uninstall this Intel binary, repeat the procedure &lt;a href=&quot;http://ask.metafilter.com/mefi/38276#596295&quot;&gt;above,&lt;/a&gt; then install the PowerPC binary from &lt;a href=&quot;http://dev.mysql.com/downloads/mysql/4.1.html&quot;&gt;here.&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596871</guid>
		<pubDate>Sun, 21 May 2006 16:33:47 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596872</link>	
		<description>Yup, you got it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596872</guid>
		<pubDate>Sun, 21 May 2006 16:34:05 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596901</link>	
		<description>OK, so everything seems to have gone well. I installed the proper version of MySQL (I may never forgive myself for that mistake), entered mysql via &lt;i&gt;mysql -uroot&lt;/i&gt;, then entered&lt;br&gt;
&lt;br&gt;
SET PASSWORD FOR &apos;root&apos;@&apos;Home.local&apos; = PASSWORD(&apos;***&apos;);&lt;br&gt;
&lt;br&gt;
The terminal returned &lt;i&gt;Query OK, 0 rows affected (0.01 sec)&lt;/i&gt;. Before I try to see if I can execute my original command, I want to make sure that there&apos;s nothing else I need to do first.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596901</guid>
		<pubDate>Sun, 21 May 2006 17:46:40 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596903</link>	
		<description>Nope. I think you&apos;re in business. Crack a beer!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596903</guid>
		<pubDate>Sun, 21 May 2006 17:49:31 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596933</link>	
		<description>Oy. So, now, &lt;i&gt;mysql -u root -p&lt;/i&gt; still returns the original error&lt;br&gt;
&lt;blockquote&gt;ERROR 1045 (28000): Access denied for user &apos;root&apos;@&apos;localhost&apos; (using password: YES)&lt;/blockquote&gt;But I&apos;m able to enter MySQL via &lt;i&gt;mysql -u root&lt;/i&gt;. After creating my tables, though, another command returns this error, which would seem related to the aforementioned issue &lt;blockquote&gt;ERROR 1044 (42000): Access denied for user &apos;@&apos;localhost&apos; to database &apos;depot_development&apos;&lt;/blockquote&gt;If you run screaming from this thread, I&apos;ll certainly understand.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596933</guid>
		<pubDate>Sun, 21 May 2006 18:38:29 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596940</link>	
		<description>OK, when you did this:&lt;br&gt;
&lt;br&gt;
SET PASSWORD FOR &apos;root&apos;@&apos;Home.local&apos; = PASSWORD(&apos;***&apos;);&lt;br&gt;
&lt;br&gt;
did you also do this?&lt;br&gt;
&lt;br&gt;
SET PASSWORD FOR &apos;root&apos;@&apos;localhost&apos; = PASSWORD(&apos;***&apos;);</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596940</guid>
		<pubDate>Sun, 21 May 2006 18:44:46 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596941</link>	
		<description>Cos if you&apos;re able to get into MySQL with mysql -uroot without typing a password, then you never assigned a password for root connecting from localhost.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596941</guid>
		<pubDate>Sun, 21 May 2006 18:46:00 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596972</link>	
		<description>I thought I had to switch out &apos;localhost&apos; with the actual name of the local host. I just entered the line with &apos;localhost&apos; in place, and while it was accepted, I still get the same error (1044). I&apos;ll uninstall and try it again. &lt;br&gt;
&lt;br&gt;
After starting up MySQL from the PrefPane, I should have done the following, exactly as it appears, save for *** being replaced with the pwd?&lt;pre&gt;shell&amp;gt;mysql -uroot&lt;br&gt;mysql&amp;gt;SET PASSWORD FOR &apos;root&apos;@&apos;localhost&apos; = PASSWORD(&apos;***&apos;);&lt;/pre&gt; Do I need to provide the &lt;i&gt;SET PASSWORD FOR &apos;root&apos;@&apos;Home.local&apos; = PASSWORD(&apos;***&apos;);&lt;/i&gt; line, or anything else, or after that am I set?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596972</guid>
		<pubDate>Sun, 21 May 2006 19:20:20 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596978</link>	
		<description>Don&apos;t uninstall, you&apos;re on the right track.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596978</guid>
		<pubDate>Sun, 21 May 2006 19:23:09 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596981</link>	
		<description>&lt;i&gt;I thought I had to switch out &apos;localhost&apos; with the actual name of the local host.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Nah, &quot;localhost&quot; just means &quot;127.0.0.1&quot; or &quot;this computer&quot;. &lt;br&gt;
&lt;br&gt;
Looking at this error:&lt;br&gt;
&lt;br&gt;
&lt;i&gt;ERROR 1044 (42000): Access denied for user &apos;@&apos;localhost&apos; to database &apos;depot_development&apos;&lt;/i&gt; &lt;br&gt;
&lt;br&gt;
I am puzzled. Was there really no user name there, just &lt;code&gt;user &apos;@&apos;localhost&apos;&lt;/code&gt;?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596981</guid>
		<pubDate>Sun, 21 May 2006 19:26:15 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596985</link>	
		<description>&lt;i&gt;Do I need to provide the SET PASSWORD FOR &apos;root&apos;@&apos;Home.local&apos; = PASSWORD(&apos;***&apos;); line, or anything else, or after that am I set?&lt;/i&gt; &lt;br&gt;
&lt;br&gt;
I wouldn&apos;t bother with that, just localhost. When MySQL sees you connecting from a Terminal on the same machine using the socket (rather than a port), then you&apos;re root@localhost (or someuser@localhost).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596985</guid>
		<pubDate>Sun, 21 May 2006 19:28:07 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#596998</link>	
		<description>Yep, just &apos;user&apos;. With that said, do you think I should reinstall? It&apos;s not sweat.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-596998</guid>
		<pubDate>Sun, 21 May 2006 19:48:30 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#597000</link>	
		<description>Err..., no sweat.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-597000</guid>
		<pubDate>Sun, 21 May 2006 19:52:33 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#597001</link>	
		<description>No, don&apos;t reinstall. You&apos;ll just get right back to the same place.&lt;br&gt;
&lt;br&gt;
It should say &quot;access denied for user [someuser]@localhost&quot;, not just access denied for user. &lt;br&gt;
&lt;br&gt;
Try &lt;br&gt;
&lt;br&gt;
&lt;code&gt;mysql -uroot -p&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Put in your password, then&lt;br&gt;
&lt;br&gt;
&lt;code&gt;mysql&amp;gt;\u depot_development&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Does that give you an error?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-597001</guid>
		<pubDate>Sun, 21 May 2006 19:53:54 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#597002</link>	
		<description>Ideally it would say this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Reading table information for completion of table and column names&lt;br&gt;
You can turn off this feature to get a quicker startup with -A&lt;br&gt;
&lt;br&gt;
Database changed&lt;br&gt;
mysql&amp;gt;&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-597002</guid>
		<pubDate>Sun, 21 May 2006 19:55:09 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#597014</link>	
		<description>If that worked, then your next step would be to do&lt;br&gt;
&lt;br&gt;
&lt;code&gt;grant all on depot_development.* to &apos;your os x username&apos;@&apos;localhost&apos; identified by &apos;somepassword&apos;;&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-597014</guid>
		<pubDate>Sun, 21 May 2006 20:07:59 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: boombot</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#597724</link>	
		<description>With no small amount of disbelief, it would seem that I&apos;m up and running. Thank you so much, evariste, for hanging in there. I&apos;ll happily send you an email to arrange shipment of the long-ago promised local delicacies.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-597724</guid>
		<pubDate>Mon, 22 May 2006 14:37:02 -0800</pubDate>
		<dc:creator>boombot</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/38276/Knocked-Out-Before-The-Bell-Rang#597755</link>	
		<description>Hooray! No need for the delicacies, I wish you good luck learning Rails :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.38276-597755</guid>
		<pubDate>Mon, 22 May 2006 15:25:16 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item>
	</channel>
</rss>
