# Error in updating to from OpenEMR 5.02 Version 5 to Version 6

**URL:** <https://community.open-emr.org/t/error-in-updating-to-from-openemr-5-02-version-5-to-version-6/15746>\
**Category:** Day-to-Day Users\
**Created:** [January 6, 2021, 10:41pm UTC](https://community.open-emr.org/t/error-in-updating-to-from-openemr-5-02-version-5-to-version-6/15746 "2021-01-06T22:41:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhunyan](https://community.open-emr.org/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jhunyan](https://community.open-emr.org/u/jhunyan)\
**Post date:** [January 6, 2021, 10:41pm UTC](https://community.open-emr.org/t/error-in-updating-to-from-openemr-5-02-version-5-to-version-6/15746/1 "2021-01-06T22:41:41Z")

</div>

Hi,

I am getting error when updating to latest version of Openemr 6. Here is the snapshot of the error message.

Please advise

Thank you

---

<div class="post-metadata">

**Author:** ![jhunyan](https://community.open-emr.org/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jhunyan](https://community.open-emr.org/u/jhunyan)\
**Post date:** [January 6, 2021, 11:34pm UTC](https://community.open-emr.org/t/error-in-updating-to-from-openemr-5-02-version-5-to-version-6/15746/2 "2021-01-06T23:34:54Z")

</div>

Hi,

I found the problem. I missed out the step of upgrading the database 1. Open openemr/sql\_upgrade.php ([http://localhost/openemr/sql\_upgrade.php](http://localhost/openemr/sql_upgrade.php)) in web browser, choose 5.0.2 and click ‘Upgrade Database’

It is working normally now.

Thank you
