The format will be the same, replace<br>username by mysql username - usually root<br>password by mysql password - usually blank<br>localhost by hostname - usually localhost<br>databasename by DB name you created - i believe you mentioned foo, so type the same in here too.<br>

<br>For more you can also refer <a href="http://drupal.org/node/126558">http://drupal.org/node/126558</a><br><br><div class="gmail_quote">On Tue, Oct 18, 2011 at 4:33 AM, Phil Dobbin <span dir="ltr">&lt;<a href="mailto:phildobbin@gmail.com">phildobbin@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi.<br>
<br>
When attempting to install Drupal 6 when I enter my database<br>
details, MySQL throws the error that no such file exists &amp; to<br>
check my database name &amp; user.<br>
<br>
I&#39;ve checked MySQL &amp; the DB is there with the correct name &amp;<br>
password I gave it so I&#39;m stumped.<br>
<br>
Do I have to alter the line `$db_url =<br>
&#39;mysqli://username:password@localhost/databasename&#39;;&#39; in my<br>
settings file &amp; if so, if the name of the DB was `foo&#39; &amp; the<br>
user `bar&#39; what syntax would this require.<br>
<br>
I&#39;m attempting an install on OS X Snow Leopard with MySQL 5.19,<br>
PHP 5.3.6 &amp; a localhost installation on a Macbook Pro. I&#39;ve<br>
followed all the install instructions &amp; PHP is working with a<br>
test page from inside my Drupal directory.<br>
<br>
Thanks for any help...<br>
<br>
Cheers,<br>
<br>
     Phil.<br>
--<br>
Please consider the environment before reading this email...<br>
<font color="#888888"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain<br>