How can I (partially) restore a WordPress website from a SQL file?

This definitely is possible. You won’t be able to get your media back with just the sql file but you can get your content.

Assuming this is your content and you have a proper admin account this is fairly easy.

Install a fresh version of WordPress (on a web-server or locally).

In phpMyAdmin.
Delete the content of your new site database. Import the new SQL file into the database. (you may want to check to make sure that your table prefix on the import tables likely it’s wp_. This needs to match what you have set in your wp-config.php file).

In your files (ftp?)
Wp-config.php
Make sure that table prefixes match.

Add these 2 lines:

define('WP_SITEURL', 'https://example.com');
define('WP_HOME', 'https://example.com');

Set the example.com to the url of the new hosting (or local IP address).

Go to the site on the new url or IP and login as usual. The site isn’t going to look pretty but you should be able to get in.

You may find some errors if you have required plugins or a custom theme. So if that happens check your error log and see what is causing the problem.

If these are simple posts, you can go to tools/export and choose to export the content that you need.

If the posts were made with a builder you’re going to get all the builder content/code in the posts, so you’ll need that plugin when you import into a new site.

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