= value,...);
```
HEAVY.AI accepts (almost) any string enclosed in optional double quotation marks as the user name.
| Property | Value |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `password` | User's password. |
| `is_super` | Set to *true* if user is a superuser. Default is *false*. |
| `default_db` | User's default database on login. |
| `can_login` | Set to true (default/implicit) to activate a user.
When false, the user still retains all defined privileges and configuration settings, but cannot log in to HEAVY.AI. Deactivated users who try to log in receive the error message "Unauthorized Access: User is deactivated."
|
Examples:
```sql
CREATE USER jason (password = 'HeavyaiRocks!', is_super = 'true', default_db='tweets');
CREATE USER "pembroke.q.aloysius" (password= 'HeavyaiRolls!', default_db='heavyai');
```
## DROP USER
```
DROP USER [IF EXISTS] ["]["];
```
Example:
```sql
DROP USER [IF EXISTS] jason;
DROP USER "pemboke.q.aloysius";
```
## ALTER USER
```
ALTER USER ["]["] ( = value, ...);
ALTER USER ["]["] RENAME TO ["]["];
```
HEAVY.AI accepts (almost) any string enclosed in optional double quotation marks as the old or new user name.
| Property | Value |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `password` | User's password. |
| `is_super` | Set to *true* if user is a superuser. Default is *false*. |
| `default_db` | User's default database on login. |
| `can_login` | Set to true (default/implicit) to activate a user.
When false, the user still retains all defined privileges and configuration settings, but cannot log in to HEAVY.AI. Deactivated users who try to log in receive the error message "Unauthorized Access: User is deactivated."
|
Example:
```sql
ALTER USER admin (password = 'HeavyaiIsFast!');
ALTER USER jason (is_super = 'false', password = 'SilkySmooth', default_db='traffic');
ALTER USER methuselah RENAME TO aurora;
ALTER USER "pembroke.q.aloysius" RENAME TO "pembroke.q.murgatroyd";
ALTER USER chumley (can_login='false');
```
## CREATE DATABASE
```
CREATE DATABASE [IF NOT EXISTS] ( = value, ...);
```
Database names cannot include quotes, spaces, or special characters.
In Release 6.3.0 and later, database names are case insensitive. Duplicate database names will cause a failure when attempting to start HeavyDB 6.3.0 or higher. Check database names and revise as necessary to avoid duplicate names.
| Property | Value |
| -------- | -------------------------------- |
| `owner` | User name of the database owner. |
Example:
```sql
CREATE DATABASE test (owner = 'jason');
```
## DROP DATABASE
```
DROP DATABASE [IF EXISTS] ;
```
Example:
```sql
DROP DATABASE IF EXISTS test;
```
## ALTER DATABASE
```
ALTER DATABASE RENAME TO ;
```
To alter a database, you must be the owner of the database or an HeavyDB superuser.
Example:
```sql
ALTER DATABASE curmudgeonlyOldDatabase RENAME TO ingenuousNewDatabase;
```
## ALTER DATABASE OWNER TO
Enable super users to change the owner of a database.
```
ALTER DATABASE OWNER TO ;
```
#### Example
Change the owner of `my_database` to user `Joe`:
```
ALTER DATABASE my_database OWNER TO Joe;
```
Only superusers can run the ALTER DATABASE OWNER TO command.
## REASSIGN OWNED
```
REASSIGN [ALL] OWNED BY , , ... TO
```
Changes ownership of database objects (tables, views, dashboards, etc.) from a user or set of users to a different user. When the **ALL** keyword is specified, ownership change would apply to database objects across all databases. Otherwise, ownership change only applies to database objects in the current database.
Example: Reassign database objects owned by `jason` and `mike` in the current database to `joe`.
```sql
REASSIGN OWNED BY jason, mike TO joe;
```
Example: Reassign database objects owned by `jason` and `mike` across all databases to `joe`.
```sql
REASSIGN ALL OWNED BY jason, mike TO joe;
```
Database object ownership changes only for objects within the database; ownership of the database itself is not affected. You must be a superuser to run this command.
## Database Security Example
See [Example: Data Security](/installation-and-configuration/security/roles#data-security-example) in [DDL - Roles and Privileges](/installation-and-configuration/security/roles) for a database security example.