* XAMPP and services
For all NT/2000 users, in both packages you will find the install and uninstall files to build all servers as services in the respective directories.
* apache_installservice.bat => Apache install as service/li>
* apache_uninstallservice.bat => Apache uninstall as service
* mysql_installservice.bat => MySQL install as service
* mysql_uninstallservice.bat => MySQL uninstall as service
After all changes don't forget to restart your system. Note! To uninstall the mysql service you must first of all have stopped the mysql service!
* MySQL and PHP
MySQL starts without a password for "root". So in PHP you can connect the MySQL-Server with: mysql_connect("localhost","root","");
If you want to set a password for "root" in MySQL, please use "mysqladmin" under Console. For example:
\...\xampp\mysql\bin\mysqladmin -u root password secret
Attention. After changing the password for root, don't forget to inform PHPMyAdmin. Search the "config.inc.php" under \...\xampp\phpmyadmin\ and edit the following lines:
$cfg['Servers'][$i]['user'] = 'root'; // MySQL SuperUser
$cfg['Servers'][$i]['auth_type'] = 'http'; // HTTP MySQL authentification
Now the correct password for "root" is required, before PHPMyAdmin starts.
Please see also the three methods in the Windows FAQ: