Connect privilege
The least of the privilege levels is Connect, which gives a user the basic ability to query and modify tables.
Users with the Connect privilege can perform the following functions:
- Execute the SELECT, INSERT, UPDATE, and DELETE statements, provided that they have the necessary table-level privileges.
- Execute an SPL routine, provided that they have the necessary table-level privileges.
- Create views, provided that they are permitted to query the tables on which the views are based.
- Create temporary tables and create indexes on the temporary tables.
Before users can access a database, they must have the Connect privilege. Ordinarily, in a database that does not contain highly sensitive or private data, you give the GRANT CONNECT TO PUBLIC privilege shortly after you create the database.
If you do not grant the Connect privilege to PUBLIC, the only users who can access the database through the database server are those to whom you specifically grant the Connect privilege. If limited users should have access, this privilege lets you provide it to them and deny it to all others.