Valkey

Valkey serves as an alternative to the Redis NoSQL data store. It is an open-source in-memory data store that supports a variety of workloads and data structures. With Kinsta’s Database Hosting, you can easily add a new Valkey database from the dashboard, click Databases > Add database and select the required options. 

If you have an existing database locally or with another hosting provider, you can import the Valkey database into Kinsta’s Database Hosting using a third-party database tool. You cannot currently import a Valkey database via the command line. Note: To import a database, you must create a new database in MyKinsta first.

Import a Valkey database using a database tool

There are many database tools you can use to connect and manage your database; we have step-by-step instructions for TablePlus, as this tool allows you to manage all the database types you can host on Kinsta. Note: When using TablePlus to connect to a Valkey database, you must choose Redis as the database type.

You can use any database client or tool that supports your database type. While some specifics, like navigation and field names, may vary between database tools, the fundamental concepts are the same.

Export a Valkey database using the command line interface (CLI)

You cannot currently import a Valkey database to Kinsta’s Database Hosting via the command line. As a workaround, you can use a database client like TablePlus to import your Valkey database to Kinsta. Note: When using TablePlus to connect to a Valkey database, you must choose Redis as the database type.

You can use the command line interface (CLI) to export your Valkey database from Kinsta. The installation of the database server and commands vary for each database type. This article is specific to Valkey. For other database types, see:

Install Valkey

If you do not yet have Valkey installed on your local machine, you’ll need to install it to connect to your database. Refer to Valkey’s installation instructions.

Kinsta database credentials

You can find your database credentials under External connections on the database Overview page.

Export a Valkey database

Use the following command to export the database, replacing EXTERNAL_HOSTNAME, PORT, and PASSWORD with the information from your database’s External connections. Replace export.rdb with the path and file name of the database you want to export:

redis-cli -h EXTERNAL_HOSTNAME -p PORT -a PASSWORD --rdb export.rdb

Once the export is complete, your database file (e.g. export.rdb) will be available at the path you specified in the redis-cli command.

Was this article helpful?