From d787d6cf8df69dba74961547317f0d492e560b1c Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Mon, 6 Sep 2021 12:27:02 +0200 Subject: [PATCH] docs: mysql --- databases/mysql.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/databases/mysql.sh b/databases/mysql.sh index f55b23d..075e609 100644 --- a/databases/mysql.sh +++ b/databases/mysql.sh @@ -9,11 +9,10 @@ SHOW PROCESSLIST; # Show you any queries that are currently running or in the qu show status where `variable_name` = 'Threads_connected'; # Show all connected threads show variables like 'max_connections'; # Show maximum number of allowed connections -SET GLOBAL max_connections = 150; ## Set new value for maximum connections (no restart needed) +SET GLOBAL max_connections = 150; ## Set new value for maximum connections (no restart needed but for permanent change update my.cnf) GRANT ALL PRIVILEGES ON prospectwith.* TO 'power'@'localhost' WITH GRANT OPTION; # Grant all privileges on database CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; # Create user mysql -u root -pmypassword -e "MY SQL QUERY" &>> query.log & disown # Run SQL query in the background -