public static function get_root_connection_using_cli($root_username = NULL) { if (!isset(self::$root_password)) { fwrite(STDERR, 'Please enter the root password: ' . PHP_EOL); self::$root_password = trim(fgets(STDIN)); } return self::get_root_connection(self::$root_password, $root_username); }