How to connect Mysql?

how to connect mysql?
i have input my information(($mysql_server,$mysql_user,$mysql_pass) in events.php, config.php

i use the connector and connect my mysql database, but i can’t update data.

what’s the problem??

Post more details about your config file and part of codes, to see what you might be missing.