Achievement:
1. Able to connect to database and create a database after setting the root's password.
<?php
$conn = mysqli_connect("localhost","root","admin");
mysqli_query($conn, "CREATE DATABASE aloha");
mysqli_close($conn);
?>
1. Able to connect to database and create a database after setting the root's password.
<?php
$conn = mysqli_connect("localhost","root","admin");
mysqli_query($conn, "CREATE DATABASE aloha");
mysqli_close($conn);
?>
No comments:
Post a Comment