Actually I'm not manually starting mysqld it starts on boot. I'm talking about when I try and run the mysql.<br><br><div><span class="gmail_quote">On 5/28/06, <b class="gmail_sendername">Bill Moran</b> &lt;<a href="mailto:wmoran@potentialtech.com">
wmoran@potentialtech.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&quot;Daniel McQuay&quot; &lt;<a href="mailto:simplebob@gmail.com">
simplebob@gmail.com</a>&gt; wrote:<br><br>&gt; Hello list,<br>&gt;<br>&gt; I'm not exactly sure if this a question for this list or MySQL but here goes<br>&gt; it.<br>&gt;<br>&gt; I just installed the mysql from ports using this howto (
<br>&gt; <a href="http://raybdbomb.com/p/mysql-install-on-freebsd.html">http://raybdbomb.com/p/mysql-install-on-freebsd.html</a>) and all seemed to go<br>&gt; well. I then ran /usr/local/bin/mysql_install_db. And then started mysql.
<br>&gt; When I try to start mysql with mysql -u root -p and put my password in I<br>&gt; get: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using<br>&gt; password: YES), but I am able to use mysql -u mysql and get in and mess
<br>&gt; around but with limited privileges.<br>&gt;<br>&gt; I checked out the MySQL documentation and it told me to do: mysqladmin -u<br>&gt; root -h <a href="http://boxster.mydomain.com">boxster.mydomain.com</a> password &quot;my_new_password&quot;, but after I do that
<br>&gt; the terminal hands and the only way I can break it is with control z. When I<br>&gt; do that though, it opens another process of mysql but now with mysqladmin<br>&gt; running as root, according to top at the shell prompt.
<br>&gt;<br>&gt; Oh, and when I run ps auxw |grep mysqld the out put looks like this:<br>&gt;<br>&gt; &lt;snip&gt;<br>&gt; boxster# ps auxw |grep mysqld<br>&gt; root&nbsp;&nbsp;&nbsp;&nbsp;769&nbsp;&nbsp;0.0&nbsp;&nbsp;0.1&nbsp;&nbsp;1440&nbsp;&nbsp; 592&nbsp;&nbsp;p0&nbsp;&nbsp;R+&nbsp;&nbsp; 10:31PM&nbsp;&nbsp; 0:00.01
 grep mysqld<br>&gt; mysql&nbsp;&nbsp; 473&nbsp;&nbsp;0.0&nbsp;&nbsp;0.2&nbsp;&nbsp;1660&nbsp;&nbsp;1196 con- I&nbsp;&nbsp;&nbsp;&nbsp; 9:33PM&nbsp;&nbsp; 0:00.07 /bin/sh<br>&gt; /usr/local/bin/mysqld_safe --user=mysql --datadir=/var/db/mys<br>&gt; mysql&nbsp;&nbsp; 520&nbsp;&nbsp;0.0&nbsp;&nbsp;4.5 56748 26132 con- S&nbsp;&nbsp;&nbsp;&nbsp; 9:33PM<br>
&gt; 0:13.93/usr/local/libexec/mysqld --basedir=/usr/local<br>&gt; --datadir=/var/db/mysq<br>&gt; boxster#<br>&gt; &lt;/snip&gt;<br>&gt;<br>&gt; I noticed that --datadir= goes to /var/db/mys and /var/db/mysq but there's<br>
&gt; no such directories named mys and mysq. Just in case this was the error I<br>&gt; made both of those directories but I'm suspicious of that.<br><br>Those directories must have the database files in them.&nbsp;&nbsp;You can't just
<br>create them.&nbsp;&nbsp;Looks like you typed in commands wrong.<br><br>The last few steps are incorrect anyway.&nbsp;&nbsp;You shouldn't be manually starting<br>mysqld.&nbsp;&nbsp;Read through /usr/local/etc/rc.d/msyqld.sh (or whatever it's<br>called) and put the correct configuration values in /etc/rc.conf.&nbsp;&nbsp;Then
<br>execute the rc script to start/stop it.<br><br>--<br>Bill Moran<br><br>I lay down for a while, and I woke up on the ocean,<br>floating on my back, and staring at the grey.<br>It was completely still, 'cept for the pounding of my heart,
<br>was bring me back to life, from three strange days.<br><br>_______________________________________________<br>wplug mailing list<br><a href="mailto:wplug@wplug.org">wplug@wplug.org</a><br><a href="http://www.wplug.org/mailman/listinfo/wplug">
http://www.wplug.org/mailman/listinfo/wplug</a><br></blockquote></div><br><br clear="all"><br>-- <br>Daniel McQuay<br><a href="mailto:simplebob@gmail.com">simplebob@gmail.com</a><br><a href="http://boxster.homelinux.org">
boxster.homelinux.org</a><br>814.825.0847