Installation process: detect connection errors with mysqli

This pull request fixes a small bug during the installation process. Currently, if we enter incorrect authentication parameters for the MySQL server, the installation continue without error.

With `$link = new mysqli(...)`, if the connection fails, `$link` will still contain an empty mysqli object. Thus, we need to explicitly check for errors with `$link->connect_errno`.