Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mysql Reload option!

Posted on 2014-12-12
7
Medium Priority
?
126 Views
Last Modified: 2015-02-05
can someone please explain how does "mysql reload" works comparing to "mysql restart".
I made some changes on my.conf file, and I can't afford to restart mysql server. since "reload" is one of the mysql options (mysql start|restart|stop|force-reload|relaod), I tried it, but it doesn't apply the changes that I made to my.conf.

thanks
0
Comment
Question by:CCVOIP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40497439
reload reloads the conf files (configuration files) without stopping the server/program which should be pretty much instantaneous

restart stops the server/program and then starts it again which takes time
0
 

Author Comment

by:CCVOIP
ID: 40497452
thanks for your reply.
if reload reloads the conf files, why it is not working for me. I uncommented two parameter within my.cnf:
   server-id = 1
   log_bin =  /var/log/mysql/mysql-bin.log
and saved the changes, then executed  /etc/init.d/mysql reload
but "show master status" still returns empty set
0
 
LVL 58

Expert Comment

by:Gary
ID: 40497464
Not everything can be reloaded and log_bin would be one of them - that requires a restart - why would you want to change this while running?

I'll see if I can find a comprehensive list
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:CCVOIP
ID: 40497477
so the "reload" applies only for a dynamic variables!!
I was asked to set up a replication, and see if there is any way to do it without restarting the mysql server. I wonder if you have any suggestion to achieve that

thanks
0
 
LVL 58

Expert Comment

by:Gary
ID: 40497481
Yes, cannot find a list of what you can change but yes dynamic variables that do not adversely affect the MySQL server.
So things like changing paths for example are not gonna work.
0
 
LVL 58

Accepted Solution

by:
Gary earned 1500 total points
ID: 40497483
Suggestions...
I don't see how because of the reasons above, is a few seconds that important?
It's not something I would be overly familiar with but the closest example I found is this which still requires restarting
http://plusbryan.com/mysql-replication-without-downtime
0
 

Author Comment

by:CCVOIP
ID: 40497495
thanks for the link. I am  going to work on it when there is no heavy access to the production server.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question