# Mysql which username use to connect php with db?

**URL:** <https://forum.kirupa.com/t/mysql-which-username-use-to-connect-php-with-db/161358>\
**Category:** Uncategorized\
**Created:** [September 3, 2005, 5:24am UTC](https://forum.kirupa.com/t/mysql-which-username-use-to-connect-php-with-db/161358 "2005-09-03T05:24:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![multimediamkt](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@multimediamkt](https://forum.kirupa.com/u/multimediamkt)\
**Post date:** [September 3, 2005, 5:24am UTC](https://forum.kirupa.com/t/mysql-which-username-use-to-connect-php-with-db/161358/1 "2005-09-03T05:24:56Z")

</div>

[FONT=Arial]  
…simply can´t understand mysql

1- I´ve been studying a tutorial on which a script connects to a database ;

\<?  
$usr = “–username–”;  
$pwd = “–password–”;  
$host = “localhost”;  
$db = “linksdb”;  
…  
I have installed the server bundle W a m p and so far I´ve not been able to understand how to configure the MYSQL username ;  
I followed a tutorial that showed how to assign a password to MYSQL but  
it does not explain how to deal with username (is it root ? );  
how to set a username on mysql ?

2- by means MYSQL Front 3.2 I accessed a server where I have an account , despite not being able to understand how the database server works.  
I´ve not been able to decipher this riddle , so I wonder If someone could  
me explain how (or recommend me a tutorial);

Cheers

RW

[/FONT]
