How to duplicate a template in wordpress site editor?

This can be achieved by switching from the Visual Editor to the Code Editor

First, open the page template in the Site Editor. Then change from the Visual Editor to the Code Editor. All of the blocks will change from visual blocks to a long plaintext representation of the blocks. Select-all (ctrl+a) and copy this (ctrl-c).

Open your new template in the Site Editor. Then change from the Visual Editor to the Code Editor. Delete the body of the page template, and paste (ctrl-v) what you copied from the other template above. Save.

You should now have a duplicate template.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)