You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--Create a specific user for Hyperdrive to log in as
76
-
CREATEUSER 'hyperdrive_user'@'%' IDENTIFIED BY 'sufficientlyRandomPassword';
77
+
--Grant database privileges to the hyperdrive role
78
+
GRANT ALL PRIVILEGES ON DATABASE postgres to hyperdrive;
77
79
78
-
-- Grant database privileges to the hyperdrive user
79
-
-- Adjust privileges as needed for your use case
80
-
GRANT ALL PRIVILEGES ON your_database_name.* TO 'hyperdrive_user'@'%';
80
+
-- Create a specific user for Hyperdrive to log in as
81
+
CREATE ROLE hyperdrive_user LOGIN PASSWORD 'sufficientlyRandomPassword';
81
82
82
-
--Apply the privileges
83
-
FLUSH PRIVILEGES;
83
+
--Grant this new user the hyperdrive role privileges
84
+
GRANT hyperdrive to hyperdrive_user;
84
85
```
85
86
86
87
Refer to AWS' [documentation on user roles in PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Roles.html) for more details.
87
88
88
-
With a database user, password, database endpoint (hostname and port) and database name (default: `mysql`), you can now set up Hyperdrive.
89
+
With a database user, password, database endpoint (hostname and port) and database name (default: `postgres`), you can now set up Hyperdrive.
0 commit comments