Skip to main content

user

Inspect warehouse SQL user accounts and MySQL-compatible privilege fields. These accounts are separate from organization members and organization roles.

Run the query in the warehouse SQL Editor or a connected SQL client:

SELECT * FROM mysql.user LIMIT 10;

Database​

mysql

Table information​

Column nameTypeDescription
Hostchar(255)The host from which the user is allowed to connect.
Userchar(32)Username.
Node_privchar(1)Whether the user has Node privileges.
Admin_privchar(1)Whether the user has Admin privileges.
Grant_privchar(1)Whether the user has Grant privileges.
Select_privchar(1)Whether the user has Select privileges.
Load_privchar(1)Whether the user has Load privileges.
Alter_privchar(1)Whether the user has Alter privileges.
Create_privchar(1)Whether the user has Create privileges.
Drop_privchar(1)Whether the user has Drop privileges.
Usage_privchar(1)Whether the user has Usage privileges.
Show_view_privchar(1)Whether the user has Show View privileges.
Cluster_usage_privchar(1)Whether the user has Cluster usage privileges.
Stage_usage_privchar(1)Whether the user has Stage usage privileges.
ssl_typechar(9)Always empty, for MySQL compatibility only.
ssl_ciphervarchar(65533)Always empty, for MySQL compatibility only.
x509_issuervarchar(65533)Always empty, for MySQL compatibility only.
x509_subjectvarchar(65533)Always empty, for MySQL compatibility only.
max_questionsbigintAlways 0, for MySQL compatibility only.
max_updatesbigintAlways 0, for MySQL compatibility only.
max_connectionsbigintAlways 0, for MySQL compatibility only.
max_user_connectionsbigintThe maximum number of allowed connections.
pluginchar(64)Always empty, for MySQL compatibility only.
authentication_stringvarchar(65533)Always empty, for MySQL compatibility only.
password_policy.expiration_secondsvarchar(32)Password expiration time.
password_policy.password_creation_timevarchar(32)Password creation time.
password_policy.history_numvarchar(32)Number of historical passwords.
password_policy.history_passwordsvarchar(65533)Historical passwords.
password_policy.num_failed_loginvarchar(32)Allowed number of consecutive login failures.
password_policy.password_lock_secondsvarchar(32)Password lock time after triggering lock.
password_policy.failed_login_countervarchar(32)Login failure count.
password_policy.lock_timevarchar(32)Password policy.lock time.

Use DESCRIBE mysql.user; to inspect the schema in your warehouse.