---
title: MySQL Configuration
slug: kron-dam-supported-databases-and-databases-clients/mysql-configuration
docTags: 
createdAt: 2025-01-14T09:22:32.917Z
---

### Purpose&#x20;

In MySQL, the objective is to create a user that can connect and perform SELECT operations on any database/table without modification rights.&#x20;

### Grant Permissions&#x20;

:::CodeblockTabs
MySQL

```pgsql
 -- Connection - only privilege
GRANT USAGE ON *.* TO ’[ username ]’@’%’;

-- Grant read access to all tables
GRANT SELECT ON *.* TO ’[ username ]’@’%’;

-- Apply privileges
FLUSH PRIVILEGES ;
```
:::

### Testing Permissions&#x20;

Connect as \[username] and execute a SELECT query:&#x20;

```pgsql
USE testdb ;
SELECT * FROM test_table ;
```

If \[username] can retrieve the data without an error, the privileges are correctly granted.&#x20;
