LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2022, 10:23 AM   #1
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Rep: Reputation: Disabled
remove variable from mysql


rhel 7.9
mysql8

I need to know how to remove a variable from cmdline.
I don't know if that is the right name for it, and that is partly my problem.

There is a variable called binlog_expire_logs_seconds

I went to modify it, and I typed in binlog_expire_log_seconds

So I left of an s, and now I can't restart mysqld. Says it's unknown. So, I need to remove the variable(or whatever the correct term is). I just don't know the command, since I don't know the correct name, variable or is parameter or some other name!

Thanks!
 
Old 07-20-2022, 12:14 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,680

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by vinmansbrew View Post
rhel 7.9
mysql8

I need to know how to remove a variable from cmdline.
I don't know if that is the right name for it, and that is partly my problem.

There is a variable called binlog_expire_logs_seconds I went to modify it, and I typed in binlog_expire_log_seconds

So I left of an s, and now I can't restart mysqld. Says it's unknown. So, I need to remove the variable(or whatever the correct term is). I just don't know the command, since I don't know the correct name, variable or is parameter or some other name!
No idea what you're talking about. What command line did you type in, where? What exactly did you do, how?? Because as you posted, it's impossible to figure out what you mean.
 
Old 07-20-2022, 01:21 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by vinmansbrew View Post
There is a variable called binlog_expire_logs_seconds

I went to modify it, and I typed in binlog_expire_log_seconds

So I left of an s, and now I can't restart mysqld. Says it's unknown. So, I need to remove the variable(or whatever the correct term is). I just don't know the command, since I don't know the correct name, variable or is parameter or some other name!

Thanks!
Where is this variable? Is it in mysql? In the OS? How did you try and modify it? What command was used? In the OS or when in the mysql environment?

We cannot guess what you did and my skills at mind reading are non-existent.
 
1 members found this post helpful.
Old 07-20-2022, 02:08 PM   #4
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
Well, that's about my ability with mysql!
It was in the mysql, I did this operation:
SET GLOBAL binlog_expire_logs_seconds= and set a time. The problem is I left off the s, at the end of logs.
It generally seems to be called a system variable. I need to remove the variable that is incorrect, binlog_expire_log_seconds

unknown variable 'binlog_expire_log_seconds=1296000'.

Last edited by vinmansbrew; 07-20-2022 at 02:46 PM.
 
Old 07-20-2022, 02:52 PM   #5
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
Ah, found where I could correct it. I didn't know it would end of sitting in the my.cnf but I found a clue pointing to it, and there it was. Makes me feel kinda dumb, but I am flying mysql blind.
 
Old 07-20-2022, 03:22 PM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
If it was in my.cfg then it would seem to be a mysql variable and not a system variable.

I am glad you are working at using & learning about mysql. Actually using things (and often making mistakes then fixing them) is how I have learned most of my admin skills for linux, apache web server, mysql, AIX, and others. We learn as we do things.
 
Old 07-20-2022, 03:54 PM   #7
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
If nothing else, it caused me to look around and I found a different setting to delete the binlogs after a few days.
 
  


Reply



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
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
AWK a variable Ouptut to a new variable and using the new variable with the old one alertroshannow Linux - Newbie 4 02-16-2009 12:08 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 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