Call require_once form admin page with checkbox

I achieved my goal by doing an option check like so, which conditionally loads the various functions in module_2.php, in my main plugin file:

// If the checkbox is checked, load module_2.php.
if ( get_option( 'my_checkbox_option' ) ) {
    require_once MY_MODULES_PATH . 'module_2.php';
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)