---
title: Charmhub | Deploy WordPress using Charmhub - The Open Operator Collection
description: Deploy the latest version of WordPress as a Kubernetes Operator on any
  cloud.
url: https://charmhub.io/wordpress-k8s/docs/upgrade-wordpress-charm
---

# WordPress

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 15

```
juju deploy wordpress-k8s
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

##### Maintainers

+ [Launchpad Team](https://launchpad.net/~canonical-is-devops)

* [Submit a bug](https://github.com/canonical/wordpress-k8s-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# How to upgrade

Before updating the charm you need to back up the database using
the MySQL charm’s `create-backup` action.

```
juju run mysql/leader create-backup
```

Additional information can be found about backing up in
[the MySQL documentation](https://canonical-charmed-mysql.readthedocs-hosted.com/how-to/back-up-and-restore/create-a-backup/).

Then you can upgrade the WordPress charm:

```
juju refresh wordpress-k8s
```

After upgrading the WordPress charm you need to update the database schema:

```
juju run wordpress-k8s/0 update-database
```

---
