In this example, we specify the server name, username, password, and the database name, and create a connection using the mysqli_connect() function. We then check if the connection was successful, and display a message accordingly. The package library used in this example is the MySQLi extension which is included in PHP 5.0 or later. The extension provides an interface for accessing MySQL databases, and is commonly used for web applications built using PHP.