Skip to content

Limit users to 50 connections in database#21

Open
hansfilipelo wants to merge 2 commits intomasterfrom
mysql_max_conn
Open

Limit users to 50 connections in database#21
hansfilipelo wants to merge 2 commits intomasterfrom
mysql_max_conn

Conversation

@hansfilipelo
Copy link
Member

Limit users to 50 connections in database.

CREATE USER '$userName'@localhost IDENTIFIED BY '$userPassword';
GRANT ALL PRIVILEGES ON $userName . * TO '$userName'@'localhost';"
GRANT ALL PRIVILEGES ON $userName . * TO '$userName'@'localhost';
UPDATE mysql.user SET max_user_connections=50 WHERE user='$user' AND host='localhost';"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Varför används ´$user´ här istället för ´$userName´?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants