Changing a user's password

If we wish to change the password of an existing account, we can use the ALTER USER command:

ALTER USER 'data_analytics' WITH PASSWORD 'verystrongpassword'; 

We can also append a SUPERUSER or NOSUPERUSER option to the end of this query to grant or revoke superuser access.

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.