[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class MySQLChatMessageHistory (0.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.0 (latest)](/python/docs/reference/langchain-google-cloud-sql-mysql/latest/langchain_google_cloud_sql_mysql.chat_message_history.MySQLChatMessageHistory)\n- [0.2.3](/python/docs/reference/langchain-google-cloud-sql-mysql/0.2.3/langchain_google_cloud_sql_mysql.chat_message_history.MySQLChatMessageHistory) \n\n MySQLChatMessageHistory(\n engine: langchain_google_cloud_sql_mysql.engine.MySQLEngine,\n session_id: str,\n table_name: str,\n )\n\nChat message history stored in a Cloud SQL MySQL database.\n\nProperties\n----------\n\n### messages\n\nRetrieve the messages from Cloud SQL\n\nMethods\n-------\n\n### _verify_schema\n\n _verify_schema() -\u003e None\n\nVerify table exists with required schema for MySQLChatMessageHistory class.\n\nUse helper method MySQLEngine.init_chat_history_table(...) to create\ntable with valid schema.\n\n### add_message\n\n add_message(message: langchain_core.messages.base.BaseMessage) -\u003e None\n\nAppend the message to the record in Cloud SQL\n\n### clear\n\n clear() -\u003e None\n\nClear session memory from Cloud SQL"]]