Вы находитесь на странице: 1из 5

MYSQL Version Upgrade TO 5.5.

9 This Document intends to list the steps and procedure for mysql version upgrade. Steps :An outline of the required steps are below :1. Run all the Pre checks and modifications needed. 2. Backup up the database ( infact, full installation, including the grants DB called mysql) 3. In our environment, the mysql installation is done at a different location, separate from the mysql default installation location. For me its done at /mysql/software.5.1.38 and contains the following folders :$ ls /mysql/software/5.1.38 agent conf data EXCEPTIONS-CLIENT INSTALL-BINARY man README share support-files bin COPYING docs include lib mysql-te 4. So i remove all these binaries and install only the 5.5 binaries. 5. Start mysql with the approprite my.cnf file pointing to the correct database location. 6. Run mysql_upgrade and to check and repair the tables as necessary. Changes in MYSQL 5.5 :110623 10:14:03 [ERROR] /mysql/software/5.5.9/bin/mysqld: unknown variable 'setvariable=binlog_format=ROW' 110623 10:14:03 [ERROR] Aborting 110623 10:21:05 [ERROR] /mysql/software/5.5.9/bin/mysqld: unknown variable 'setvariable=lower_case_table_names=1' 110623 10:21:05 [ERROR] Aborting

Step 6. Running mysql_upgrade script. [mysql559@eul3c2 ~]$ mysql_upgrade --user=root --password=`cat ~mysql559/.rootpwd` --socket=/mysql/software/5.5.9/conf/mysql.sock
Looking for 'mysql' as: mysql Looking for 'mysqlcheck' as: mysqlcheck Running 'mysqlcheck' with connection arguments: '--socket=/mysql/software/5.5.9/conf/mysql.sock' Running 'mysqlcheck' with connection arguments: '--socket=/mysql/software/5.5.9/conf/mysql.sock' cmsdb.ajaxgridstate OK cmsdb.area_x_segment OK cmsdb.calendar OK cmsdb.carrier OK cmsdb.cat_company OK cmsdb.cat_company2 OK cmsdb.cat_company_dev OK cmsdb.cat_depart OK cmsdb.cat_department OK cmsdb.cat_department_bkp OK cmsdb.cat_department_bkp_22 OK cmsdb.cat_department_dev OK cmsdb.cat_person OK cmsdb.citizen OK

cmsdb.tmp_cat_department OK cmsdb.complaint OK cmsdb.customer_group OK cmsdb.customer_part_nr OK cmsdb.customer_ship_to OK cmsdb.customer_tab OK cmsdb.customer_x_type_code OK cmsdb.delta_department OK cmsdb.die OK cmsdb.dummy_customer OK cmsdb.dummy_department OK cmsdb.dummy_department2 OK cmsdb.dummy_user_table OK cmsdb.ecc_defect OK cmsdb.ecc_defect190210 OK cmsdb.ecc_defect_171209 OK cmsdb.eightd_details OK cmsdb.fg_x_manager OK cmsdb.flex_genealogy OK cmsdb.flex_genealogy_bkp OK cmsdb.hmlog$_delta_department OK cmsdb.hmlog$_t_customer OK cmsdb.hmlog$_t_product OK cmsdb.id OK cmsdb.location OK cmsdb.locl_mfg_data OK cmsdb.macro_area OK cmsdb.macro_segment OK cmsdb.market_segment OK cmsdb.mlog$_delta_department OK cmsdb.mlog$_dummy_customer OK cmsdb.mlog$_t_customer OK cmsdb.mlog$_t_product OK cmsdb.multiple_site_refresh OK cmsdb.organization OK cmsdb.pl_man_qaps OK cmsdb.pl_manager OK cmsdb.pl_manager_old OK cmsdb.plant OK cmsdb.region OK cmsdb.sales_area OK cmsdb.sales_segment OK cmsdb.sample_temp OK cmsdb.sheet2$ OK cmsdb.ship_to_fse_fsa_data OK cmsdb.st_group_master OK cmsdb.subcon5_category Error : Table 'cmsdb.subcon5_category' doesn't exist status : Operation failed cmsdb.supplier_complaints OK cmsdb.t OK cmsdb.t_admin OK cmsdb.t_admin_complaint OK cmsdb.t_admin_roles OK cmsdb.t_analysis OK cmsdb.t_analysis_data OK cmsdb.t_analysis_flow OK cmsdb.t_cat_company OK cmsdb.t_cat_department OK cmsdb.t_complaint OK cmsdb.t_complaint_tree OK cmsdb.t_customer OK cmsdb.t_customer_pn OK cmsdb.t_customer_request OK cmsdb.t_device_id OK cmsdb.t_document OK cmsdb.t_eightd OK cmsdb.t_email OK cmsdb.t_findings OK cmsdb.t_history OK cmsdb.t_order OK cmsdb.t_phone_call OK cmsdb.t_product OK cmsdb.t_product_die_wafer OK cmsdb.t_sample_details OK cmsdb.t_sample_logistic OK cmsdb.t_sample_rcvr OK cmsdb.t_sample_receiver OK cmsdb.t_shipment_ref OK cmsdb.t_symptom OK cmsdb.t_tracking OK cmsdb.t_tree OK cmsdb.t_tzc_8d_data OK cmsdb.t_tzc_event_data OK cmsdb.t_user_details OK cmsdb.t_user_pref OK cmsdb.t_user_reports OK cmsdb.t_user_role OK cmsdb.temp OK cmsdb.tempo_cat_company OK cmsdb.tempo_cat_department OK cmsdb.testdata OK cmsdb.tm_combo_values OK cmsdb.tm_complaint_manager OK cmsdb.tm_complaint_manager_delegate OK cmsdb.tm_complaint_manager_new OK cmsdb.tm_complaint_manager_temp OK cmsdb.tm_customer_parameters OK cmsdb.tm_document_validator OK cmsdb.tm_email_alert OK cmsdb.tm_sample_conditions OK

cmsdb.tm_super_user OK cmsdb.tm_supplier_defects OK cmsdb.tmp_cat_company OK cmsdb.tmp_cat_department OK cmsdb.tmp_customer_group OK cmsdb.tmp_customer_ship_to OK cmsdb.tmp_flex_genealogy OK cmsdb.tmp_plm_genealogy OK cmsdb.tmp_raj_complaint OK cmsdb.user_div_x_group OK cmsdb.v_cust_data OK cmsdb.v_customer_data OK cmsdb.v_rpt_aa OK cmsdb.v_rpt_ea OK cmsdb.v_rpt_la OK cmsdb.v_rpt_pa OK cmsdb.v_rpt_vma OK cmsdb.v_sc_defect OK cmsdb.vw_test OK cmsdb.wafer OK mysql.columns_priv OK mysql.db OK mysql.event OK mysql.func OK mysql.general_log OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.host OK mysql.inventory OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.servers OK mysql.slow_log OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK qsrefdb.area_x_segment OK qsrefdb.carrier OK qsrefdb.customer OK qsrefdb.customer_group OK qsrefdb.customer_part_nr OK qsrefdb.customer_ship_to OK qsrefdb.customer_x_type_code OK qsrefdb.customer_x_type_code_bkp OK qsrefdb.die OK qsrefdb.flex_bkp OK qsrefdb.flex_gen_bkp OK qsrefdb.flex_genealogy OK qsrefdb.flex_genealogy23052011 OK qsrefdb.flex_genealogy_20052011 OK qsrefdb.flex_genealogy_bkp OK qsrefdb.flex_genealogy_new OK qsrefdb.flex_genealogy_new_data OK qsrefdb.industry_dom_compliancy OK qsrefdb.industry_domain OK qsrefdb.locl_mfg_data OK qsrefdb.macro_area OK qsrefdb.macro_process OK qsrefdb.macro_segment OK qsrefdb.market_segment OK qsrefdb.organization OK qsrefdb.plant_1 OK qsrefdb.plm_bkp OK qsrefdb.plm_genealogy OK qsrefdb.plm_genealogy23052011 OK qsrefdb.plm_genealogy_20052011 OK qsrefdb.plm_genealogy_new OK qsrefdb.plm_genealogy_new_data OK qsrefdb.plm_genealogy_qaps OK qsrefdb.product_division OK qsrefdb.product_group OK qsrefdb.product_x_industry_dom OK qsrefdb.production_area OK qsrefdb.region OK qsrefdb.sales_area OK qsrefdb.sales_segment OK qsrefdb.ship_to_fse_fsa_data OK qsrefdb.ship_to_fse_fsa_data_16_dec OK qsrefdb.ship_to_fse_fsa_data_dev OK qsrefdb.ship_to_fse_fsa_data_old OK qsrefdb.t_plant OK qsrefdb.t_plm_genealogy OK qsrefdb.wafer OK sappoc.item_master OK sappoc.test1 OK sappoc.vv_it_awb_detail OK sappoc.vv_it_master OK wfodb.action OK wfodb.calendar OK wfodb.complaint OK wfodb.complaint_config OK wfodb.complaint_defect OK wfodb.complaint_status OK

wfodb.complaint_types wfodb.crm wfodb.crm_detail wfodb.defect_type wfodb.document wfodb.ecc_defect wfodb.finance wfodb.foundry wfodb.foundry_x_fab wfodb.ftpserver wfodb.key_generator wfodb.key_supplier wfodb.key_supplier_records wfodb.logistics wfodb.lot_wafer wfodb.lsp_plant wfodb.lsp_plant_internal wfodb.messages wfodb.nmx_mail wfodb.plant wfodb.product_division_hist wfodb.product_type wfodb.production_area wfodb.rma wfodb.rpt_authorized_users wfodb.rpt_car_crm_lots wfodb.rpt_car_lots_summary wfodb.rpt_cars wfodb.rpt_finance wfodb.rpt_logistics wfodb.rpt_lot_wafer wfodb.rpt_technics wfodb.rush_analysis wfodb.sample wfodb.sub_contractor wfodb.swt_sequence wfodb.t_rpt_combos wfodb.t_rpt_dashboard wfodb.t_rpt_lsp wfodb.t_rpt_sup_dashboard wfodb.t_rpt_wfo_dashboard wfodb.t_user_reports wfodb.technical_documents wfodb.technics wfodb.temp_lot_wafer wfodb.tm_combo_values wfodb.tm_complaint_severity wfodb.tm_complaint_source wfodb.tm_currency_data wfodb.tm_defect_location wfodb.tm_defect_units wfodb.tm_defects wfodb.tm_key_supplier wfodb.tm_lsp_supplier wfodb.tm_process_technology wfodb.tm_product_type wfodb.tm_recieved_records wfodb.tm_return_product_type wfodb.tm_subcontractor wfodb.tm_supplier_defects wfodb.tm_where_used wfodb.tm_worktool wfodb.tmp_wfo_table wfodb.user_role wfodb.user_role_231109 wfodb.user_role_anuj wfodb.user_role_final wfodb.user_role_live wfodb.users wfodb.users_12may wfodb.users_160209 wfodb.users_231109 wfodb.users_anuj wfodb.users_bkp wfodb.users_live wfodb.usres_bkp

OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK

Repairing tables cmsdb.subcon5_category Error : Table 'cmsdb.subcon5_category' doesn't exist status : Operation failed Running 'mysql_fix_privilege_tables'... OK [mysql559@eul3c2 ~]$ logout

Hi Lodh, The steps you outlined will work. I would suggest a small change: * leave the existing binaries in the /mysql/software/5.1.38 directory

* * * * *

install the new binaries into a different directory (eg /mysql/software/5.5.12) move (or copy) the entire 'data' directory into the new directory edit the configuration file to suit check the startup scripts point to the new location temporarily rename the old directory to (eg) 5.1.38-do-not-use

Once you have fully tested the new version and your backup and restore procedures you can remove the old directory completely.

Вам также может понравиться