{
    "mode": "perldoc",
    "parameter": "Apache::Session::MySQL",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Apache%3A%3ASession%3A%3AMySQL/json",
    "generated": "2026-06-09T13:51:46Z",
    "synopsis": "use Apache::Session::MySQL;\n#if you want Apache::Session to open new DB handles:\ntie %hash, 'Apache::Session::MySQL', $id, {\nDataSource => 'dbi:mysql:sessions',\nUserName   => $dbuser,\nPassword   => $dbpass,\nLockDataSource => 'dbi:mysql:sessions',\nLockUserName   => $dbuser,\nLockPassword   => $dbpass\n};\n#or, if your handles are already opened:\ntie %hash, 'Apache::Session::MySQL', $id, {\nHandle     => $dbh,\nLockHandle => $dbh\n};",
    "sections": {
        "NAME": {
            "content": "Apache::Session::MySQL - An implementation of Apache::Session\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Apache::Session::MySQL;\n\n#if you want Apache::Session to open new DB handles:\n\ntie %hash, 'Apache::Session::MySQL', $id, {\nDataSource => 'dbi:mysql:sessions',\nUserName   => $dbuser,\nPassword   => $dbpass,\nLockDataSource => 'dbi:mysql:sessions',\nLockUserName   => $dbuser,\nLockPassword   => $dbpass\n};\n\n#or, if your handles are already opened:\n\ntie %hash, 'Apache::Session::MySQL', $id, {\nHandle     => $dbh,\nLockHandle => $dbh\n};\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module is an implementation of Apache::Session. It uses the MySQL backing store and the\nMySQL locking scheme. See the example, and the documentation for Apache::Session::Store::MySQL\nand Apache::Session::Lock::MySQL for more details.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This module was written by Jeffrey William Baker <jwbaker@acm.org>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Apache::Session::File, Apache::Session::Flex, Apache::Session::DBFile,\nApache::Session::Postgres, Apache::Session\n",
            "subsections": []
        }
    },
    "summary": "Apache::Session::MySQL - An implementation of Apache::Session",
    "flags": [],
    "examples": [],
    "see_also": []
}