Overview

I had the opportunity to update Drupal on a Sakura rental server, so this is a memo of the procedure.

First, I referenced the following site.

https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-drush

However, it contained the following note.

Use Composer to manage Drupal dependencies. Drush 9 and newer no longer supports updating Drupal.

So I also referenced the following.

https://drupalfan.com/drupal10を最新版にアップデートする/

Procedure

!

The procedure may contain incorrect or unnecessary steps, so please use it as a reference only.

Navigate to the directory where Drupal was downloaded.

cd~/www/{project_name}

Preparation (Not needed if already installed)

composer

If only a composer.phar file exists, create composer. (You could also use mv.)

cpcomposer.pharcomposer

drush

composerrequire-devdrush/drush

Enabling Maintenance Mode

vendor/bin/drushstate-setsystem.maintenance_mode1

Clearing Cache

vendor/bin/drushcr

Backup

Create a directory for backups.

mkdir~/bk

SQL Backup

vendor/bin/drushsql:dump-extra-dump=--no-tablespaces>~/bk/dump.sql

Reference

Without specifying --extra-dump=--no-tablespaces, the following error message was displayed.

>vmeynsdqolrd/ubmipn:/dErrursohr:sq'lA:cdcuemsps>de~n/ibekd/;duymopu.snqeled(atleastoneof)thePROCESSprivilege(s)forthisoperation'whentryingtodumptablespaces

File Backup

tarcvzf~/bk/web.zip.

Update

Pre-check

composerupdate"drupal/core-*"-with-all-dependencies-dry-run

Update

cpcomposer.pharcomposer

0

Updating Contributed Modules

cpcomposer.pharcomposer

1

Database Update

cpcomposer.pharcomposer

2

Disabling Maintenance Mode

cpcomposer.pharcomposer

3

Clearing Cache

cpcomposer.pharcomposer

4

Without clearing the cache after the update, the display could sometimes break.

Summary

The procedure may contain incorrect or unnecessary steps, but I hope you find it helpful.