php how to connect with MySQL

Users questions:In fact, my problems and set phpadmin same, that is mysql the username in the end what to write? Root, or write to write statements to use grant to create a user, password what to write? Is written in root's password or a grant it? database what to write? Write mysql create database, or write their own name?
Experts answer: can write grant statement to create the user, the corresponding, password also write grant of. also write their own database to createGiven for you to give this user access to a database of their own creation permissions. root and grant statements to create the user and there is no difference, but a larger root permissions only.
  • This information provided by the users.Thanks!