This post gives an information about how to connect PHP page to MariaDB. First open your admin page by using this url -> http://localhost/phpmyadmin/ now you can see the admin page. In that page, you can see the user account in menu. Now select user account, here you can see the username and password of host which you have used as a sever. Here you can create your own username and password also or you can choose given username and password for connecting PHP with Database. The following program shows how to establish connection between PHP page with Database. I am using the given username and password for your convenience. Ok, Lets go to the program.
/* Connect to Database */
$host = “localhost”; // This is host name
$user = “root”; // This is username
$pass = “”; // This is password( No password is given)
$connect=mysql_connect($host, $user, $pass); // gives connection between php and databse
echo “Successfully connected to database”; // for our confirmation
Successfully connected to database