You should be creating a new connection, not deleting and updating your old connection.
If you update the existing connection file, then the code on all of the other pages will be out of sync.
You should re-create your old MySQL connection so that your existing pages work.
Then create a new MySQLi connection and update Server Behaviors page by page to use the new connection and the code on the page will be updated to MySQLi to match the connection.