<br><br><div class="gmail_quote">On Fri, Jun 6, 2008 at 6:33 AM, Ian Clark &lt;<a href="mailto:mrrooster@gmail.com">mrrooster@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div class="Ih2E3d">2008/6/5 Matt Emmott &lt;<a href="mailto:memmott@gmail.com" target="_blank">memmott@gmail.com</a>&gt;:<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I seem to have an error when running mythrename.pl or ipodexport.pl. I have no idea what the error really means and was hoping for some help. Here&#39;s the error:<div class="Ih2E3d"><br><br>DBI connect(&#39;database=mythconverg:host=localhost;port=3306&#39;,&#39;mythtv&#39;,...) failed: Access denied for user &#39;mythtv&#39;@&#39;localhost&#39; (using password: YES) at /usr/share/perl5/MythTV.pm line 337<br>


Cannot connect to database:<br><br>Here&#39;s the chunk of code around line 337 in MythTV.pm:<br><br>&nbsp;&nbsp;&nbsp; # Connect to the database<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $self-&gt;{&#39;dbh&#39;} = DBI-&gt;connect(&quot;dbi:mysql:database=$self-&gt;{&#39;db_name&#39;}:host=$self-&gt;{&#39;db_host&#39;};port=$self-&gt;{&#39;db_port&#39;}&quot;,<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $self-&gt;{&#39;db_user&#39;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $self-&gt;{&#39;db_pass&#39;})<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; or die &quot;Cannot connect to database: $!\n\n&quot;;<br></div>
</blockquote>
<div><br>After the &#39;# Connect to the database&#39;<br><br>add:<br><br>die &quot;Trying to connect using: user = -&quot;.$self-&gt;{&#39;db_user&#39;}.&quot;-, pass = -&quot;.$self-&gt;{&#39;db_pass&#39;}.&quot;-, db host = -&quot;.$self-&gt;{&#39;db_host&#39;}.&quot;-\n\n&quot;;<br>

<br>This will cause it to exit and print out the values for the user/password and hostname it&#39;s trying to connect to, you can then grep for these details in the config files to work out which one it&#39;s using.<br><br>

It sounds like it&#39;s a bad password somewhere (or it&#39;s defaulting to mythtv as it can&#39;t work it out of something.) as the hostname and username look to be correct in that error message.<br><br>However, mythtv and localhost are very common so would also be valid defaults and may be confusing the issue.<br>

<br>Ian<br><br></div></div><br>
</blockquote><div><br>You guys rock. Adding that chunk of code told me that it was trying to use the username and pw of mythtv. I copied the config.xml to&nbsp; the matt user&#39;s .mythtv directory and was able to run&nbsp; mythrename.pl&nbsp; successfully. ipodexport is giving me errors but I&#39;ll post a separate thread for that. Thanks for the help! <br>
</div></div><br>