{"id":189,"date":"2011-09-20T04:00:00","date_gmt":"2011-09-20T04:00:00","guid":{"rendered":"http:\/\/pheonixsolutions.com\/?p=189"},"modified":"2011-09-20T04:00:00","modified_gmt":"2011-09-20T04:00:00","slug":"mysql-query-failed-incorrect-information-in-file-psamisc-frm","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/mysql-query-failed-incorrect-information-in-file-psamisc-frm\/","title":{"rendered":"MySQL query failed: Incorrect information in file: &#8216;.\/psa\/misc.frm&#8217;"},"content":{"rendered":"<div style=\"text-align: left;\">\n<pre><span style=\"font-size:100%;\">Sometimes we will get the following error when we tried<br \/>to access the Plesk control panel.<br \/><br \/><\/span><span style=\"font-size:100%;\">ERROR: PleskMainDBException<br \/>MySQL query failed:<br \/><br \/>Incorrect information in file: '.\/psa\/misc.frm'<br \/><br \/>0: common_func.php3:168<br \/>db_query(string 'select param, val from misc')<br \/>1: common_func.php3:587<br \/>get_param(string 'mysql41_compatible')<br \/>2: common_func.php3:484<br \/>db_set_names()<br \/>3: common_func.php3:463<br \/>db_connect_real(string 'localhost', string 'admin',<br \/>string '*************', 'psa')<br \/>4: common_func.php3:443<br \/>db_connect()<br \/>5: auth.php3:90<br \/><br \/>Even a restart of the plesk service will not work:<br \/><br \/><code><span style=\"font-size:85%;\"># \/etc\/init.d\/psa restart<br \/>Unable to query parameter by query<br \/>select val from misc where param='mysql41_compatible':Incorrect<br \/>information in file: '.\/psa\/misc.frm'<br \/>Unable to query parameter by<br \/>query select val from misc where param='mysql41_compatible':Incorrect<br \/>information in file: '.\/psa\/misc.frm'<br \/>Mysql error: Incorrect<br \/>information in file: '.\/psa\/key_history.frm'<br \/>Processing config<br \/>directory: \/usr\/local\/psa\/admin\/conf\/httpsd.*.include<br \/>Syntax OK<br \/>\/usr\/local\/psa\/admin\/bin\/httpsdctl<br \/>restart: httpd restarted<br \/>ERROR 1033 (HY000) at line 1: Incorrect<br \/>information in file: '.\/psa\/sessions.frm'<\/span><br \/><\/code><br \/><span style=\"font-size:85%;\">so this is a mysqld failing to start properly problem. to fix this,<br \/>go to your mysql datadir and see if the sizes of your innodb log files<br \/>match those in your .cnf. we usually set innodb_log_file_size = 256M<br \/>and innodb_log_buffer_size = 256M in \/etc\/my.cnf.<br \/><br \/>if they don't match, stop mysqld, remove the ib_logfile0 and<br \/>ib_logfile1 files, and start mysqld. be careful not to delete the<br \/>ibdata1 or ibdata2 files or you lose your data.<br \/><br \/>avoid using rm -r ib*<br \/><br \/>innodb will recreate the log files to match your .cnf and mysqld<br \/>now becomes available for plesk.<\/span><br \/><br \/><br \/><\/span><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes we will get the following error when we triedto access the Plesk control panel.ERROR: PleskMainDBExceptionMySQL query failed:Incorrect information in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-33","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}