MySQL connection in PHP can be established in two ways:

```
$mysql = new mysqli('localhost', 'user_name', 'password', 'database_name');

```

or

```
$link = mysqli_connect('localhost', 'user_name', 'password');
mysqli_set_charset($link, 'utf8');
mysqli_select_db($link, 'database_name');

```

Which one is the better and why?