RethinkDB
RethinkDB is A NoSQL database that stores schemaless JSON documents, used for NoSQL Database . RethinkDB is a NoSQL database that stores schemaless JSON documents.
Prepare
When referring to this document to use RethinkDB, please read and ensure the following points:
-
This application is installed by Websoft9 console.
-
The purpose of this application complies with the apache2 open source license agreement.
-
Configure the domain name or server security group opens external network ports for application access.
Getting started
Initial setup
-
When completed installation of RethinkDB at Websoft9 Console, get the applicaiton's Overview and Access information from My Apps
- The username and password displayed on the page are the database account, not the console account
- The console does not need account authentication
-
Use the browser on your local computer and go to the RethinkDB console
Running commands in Data Explorer
Most of the operations can be achieved by running the ReQL command directly Data Explorer interface in the console :
- Change password:
r.db('rethinkdb').table('users').get('admin').update({password: 'newpassword'})
- Clear password:
r.db('rethinkdb').table('users').get('admin').update({password: 'newpassword'})
- Add a user:
r.db('rethinkdb').table('users').insert({
id: 'new_username',
password: 'new_password'
})
Configuration options
-
Server CLI:
rethinkdb -h
-
Backup and Restore:
rethinkdb export abc.db
rethinkdb dump [options]
rethinkdb import -d [options]
-
Client command line: The client CLI is not provided, only the development package is provided RethinkDB client drivers
-
Configuration file:
- Input personalized configuration through command in docker-compose.yml file (recommended)
- Container /etc/rethinkdb/instances.d/instance.conf increase the configuration file of instance.conf
-
Query language: ReQL