title: php/mySQL on XAMPP: password for phpMyAdmin and mysql_connect different?
body: <p>I am running phpMyAdmin and MySQL on XAMPP for Windows.</p>
  
  <p>I am accessing the MySQL database in two ways.  First, via <code>localhost/phpmyadmin</code>, and second, via a <code>connection.php</code> file (with <code>mysql_connect('localhost','user','password')</code> which is used by other php files for a website on the server.</p>
  
  <p>Both for the phpMyAdmin login and the <code>mysql_connect</code> I am using the root user. I know I should not be using root and that it is a security issue.  But the passwords differ! I have set the password for the phpMyAdmin access via <code>localhost/security</code>, but I can't figure how to change the password required for the <code>mysql_connect</code>. </p>
  
  <p>I thought it would be the same but apparently it is not.  How do I change the root password through phpMyAdmin?</p>