LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-09-2021, 01:46 AM   #1
taru.tarak
Member
 
Registered: Aug 2016
Distribution: CentOS
Posts: 91

Rep: Reputation: Disabled
MariaDB-10.2 unable to set max_connections and wait_timeout through etc/my.cnf


Hello,

I am using Linux Amazon Linux 2 and MariaDB 10.2. I want to set value for max_connections and wait_timeout. But there no value set in my current etc/my.cnf file.

This is my etc/my.cnf:
Quote:
#cat /etc/my.cnf
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# This group is read by the server
#
[mysqld]
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
It will be great help of someone please let me know how can I check my current value and set new value for both.

Thanks in advance.

Last edited by taru.tarak; 10-09-2021 at 01:54 AM.
 
Old 10-09-2021, 09:38 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
It will be great help of someone please let me know how can I check my current value and set new value for both.
In order to check current values log in the mariaDB server and run the following 2 commands:
Code:
SHOW VARIABLES LIKE "max_connections";
SHOW GLOBAL VARIABLES LIKE 'wait_timeout';
If you want to change the 1st add in the [mysqld] section:
Code:
max_connections=XXX
To change the 2nd, add under [mariadb] section:
Code:
wait_timeout=YYY
Regards
 
1 members found this post helpful.
Old 10-09-2021, 01:08 PM   #3
taru.tarak
Member
 
Registered: Aug 2016
Distribution: CentOS
Posts: 91

Original Poster
Rep: Reputation: Disabled
Thank you so much. Really appreciated. Please take care and stay safe.
Regards,
 
  


Reply

Tags
mariadb, mariadb 10, mysql



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is mysql automatically logging me in without .my.cnf or my.cnf sections? alunduil Linux - Server 11 05-19-2010 11:52 AM
max_connections in mysql Dshah Linux - Newbie 1 12-20-2009 10:22 AM
How to reload /etc/my.cnf without restart mysqld? Chowroc Linux - Software 4 01-16-2006 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration