# Restoring the HPE Morpheus Enterprise Manager from Backup

Begin by ensuring the Morpheus UI service is stopped on the HPE Morpheus Enterprise Manager VM. Connect to the manager over SSH from your workstation **bearing in mind that most commands in this process will require sudo or root access.** Enter the following command:

```
```
[root@app-server~] morpheus-ctl stop morpheus-ui
```
```

To access the MySQL shell we will need the password for the Morpheus DB user. We can find this in the morpheus-secrets file. View it like so:

```
```
[root@app-server~] cat /etc/morpheus/morpheus-secrets.json | grep morpheus_password  
"morpheus_password": "451e122cr5d122asw3de5e1b", <---- this one  
"morpheus_password": "9b5vdj4de5awf87d",
```
```

Make note of the first `morpheus_password` value as indicated above.

Copy the SQL database backup from the backup bucket or file share to the destination Manager VM at path `/tmp/morpheus_backup.sql`. Then, you can import the MySQL dump into the target database using the embedded MySQL binaries, specifying the database host, and entering the password for the morpheus user when prompted:

```
```
[root@app-server~] /opt/morpheus/embedded/mysql/bin/mysql -u morpheus -h 127.0.0.1 morpheus -p < /tmp/morpheus_backup.sql  
Enter password:
```
```

The database backup is now replicated on the new Manager VM. Simply start the UI to complete the process:

```
```
[root@app-server~] morpheus-ctl start morpheus-ui
```
```
