why would you want to add MySQLAdmin to xampp?
its a stand alone application that talks to any MySQL server that you are allowed to connect to.
incidentally its not a good idea to have a MySQL server with a userid of root and a null/empty password.. not clever.. it leaves your server wide open to attack
if you want to leave the user root but assign it no permissions, or better still change the password, or possibly delete root. if you do delete user root make sure you have already created a new adminstrator puserid.. and proved it has full rights to do anything to your MySQL server.
Id suggest you create a web user account for the server which access only to the db it requires and permsiions suitable to that user (ie cannot create or delete tables, can only view the tabels it should
And if required create other accounts with access
as regards your guesses.. yup thats rght
so "database" should be replaced with the naem of the databse the php script is meant to connect to
its often a smart idea to have some form of initialisation code which sets these as variables. often this intialisation code is pulled in using an include statement as jsut about the first line of each script requiring db access. So instead of...
mysql_connect("localhost","username","pass") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());
you use something like....
mysql_connect($Host,$Username,$Password) or die(mysql_error());
mysql_select_db($Database) or die(mysql_error());
of if you prefer use a define (by PHP convention user DEFINES are all CAPTIALS, note there is no $ prefixing the define as it is a constant not a variable
.. then in your app scripts
mysql_connect(HOST,USERNAME,PASSWORD) or die(mysql_error());
mysql_select_db(DATABASE) or die(mysql_error());