Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8330175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:02:29+00:00 2026-06-09T02:02:29+00:00

I have a an ubuntu we server running mysql 5.1. Previously I had this

  • 0

I have a an ubuntu we server running mysql 5.1. Previously I had this server set up as a slave for replication. Now I and switching rolls for this server and I do not need it to be a slave anymore. The problem is that right now, every time the mysql is restarted, it starts into slave mode, and when I run commands like this:

mysql < mysql_dump_file.sql

I get this error:

ERROR 1198 (HY000) at line 22: This operation cannot be performed with a running slave; run STOP SLAVE first

Of course I can run the stop slave; command in mysql and it fixes the issue, but when I restart the server the problem comes back.

Previously for the slave configuration, I had added the following lines in the my.cnf file:

port=3306
log-bin
server-id=2
master-host=(ip of master)
master-user=repl
master-password=slavepass
master-port=3306
replicate_do_db=(db to replicate)

Now I have removed all these lines and restarted, and the db automatically starts into slave mode still. I am trying to configure the mysql so that it will NOT start up in slave mode. What am I missing?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:02:30+00:00Added an answer on June 9, 2026 at 2:02 am

    You can use RESET SLAVE to restart slave from start or to stop the replication just remove master.info and relay-log.info files manually.

    RESET SLAVE;
    

    It deletes the master.info and relay-log.info files, all the relay log files, and starts a new relay log file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a server that is running Ubuntu Linux Server Edition. I once had
I have an mp3 encoding server running on Ubuntu (natty). This has been working
I have two websites running on my own root server (ubuntu/nginx/php-fpm). Now I want
I have a hard drive with an old Ubuntu Server installation running mysql that
We have a MySQL database running on a Linux (Ubuntu) server. We are thinking
I have a running (in production) mysql instance on my linux server (ubuntu-10.10) however
I have an Ubuntu server on linode running a node.js/mongo app. I realize I
Our setup as follows: We have a local development server running Ubuntu, with a
I have a bluetooth server running on my Ubuntu desktop written using PyBlueZ. That
I have a PHP server at home for development. It is running: Ubuntu 9.10

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.