Remote server MySQL

Hello, friends!
Happy New Year!
I wish you fulfillment of your dreams and success in your business!

I ask for help, dear colleagues.
Please tell me what I’m doing wrong.
I dream of connecting WordPress to a remote database. For this purpose there is a server where a database has been created.
I’m trying to do it according to the instructions

This guide still leaves me with many questions.
How to specify access to a remote server in WordPress settings.
How to check in the console that connection is possible.

If possible, please provide guidance, maybe someone has experience with more detailed steps.

I’m confused, I ask for your kind help, Colleagues!

All the best wishes

Maybe time to google it?

How to specify access to a remote server in WordPress settings.
Check wp-config.php

How to check in the console that connection is possible.
Google it … This is really basic things …

Thank you, everything is correct!
I already did this to gain initial skills.
The problem is that the command to add a new database server hangs

Therefore, I formulated the question this way, in the hope that someone will give a step-by-step guide.

v-add-database-host mysql new-server.com root password

freezes.

telnet 3306

freezes,

v-list-database-hosts

Returns localhost

Therefore, my problem is not in setting up WordPress.
Added on the remote server
bind address according to instructions
Opened access to port 3306

At the same time, telnet freezes
The remote server is not added.

I tried asking Google, same instructions everywhere.
Add a bind address, open iptables

This guide leaves me with questions.
Therefore, bowing deeply, thank you for your answer in advance)