It's a good idea to get into the habit of using pkill instead of killall. You may end up on a Solaris box someday : — MikeyB. Then you can chkconfig mysql off to disable it from restarting. On Fedora 18 I had success with pkill, thanks MikeyB. I also had to use: yum remove mysql , as the command which mysql is still showing mysql installed path. If they used the operating system's built in package management, it should be as easy as the yum line in Dave's answer or on a Debian-based system including Ubuntu , you can use: apt-get remove mysql-server As an aside, use purge instead of remove if you also want to remove custom configuration files If you don't know the exact package name to remove on Ubuntu: dpkg -l grep mysql If the user in question did not use a package management tool, then the only real solution is to simply ensure that the server doesn't load on startup chkconfig or update-rc.
Whoops, sorry for the redundant ubuntu answer -- leaving it in for the chkconfig and update-rc. If you are running a debian based distribution: "sudo apt-get remove mysqld" Per Zoredache's comment you can also do:"sudo apt-get purge mysqld" which would also remove configuration files. You might want 'apt-get purge' instead of remove if you want to completely git rid of everything.
The package name is probably going to be 'mysql-server' and 'mysql-common' and not mysqld. Rosco Rosco 3 3 silver badges 6 6 bronze badges. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked 0. Related 4. Hot Network Questions. Anthony Anthony 11 1 1 bronze badge. Execute the following command : rpm -qa grep mysql It will list all installed mysql packages on your system. Eg: mysql-libs Sachin Sachin 3 3 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 0. See more linked questions. Related 0. Where would you like to share this to? Twitter Reddit Hacker News Facebook. Share link Question share link. Sign Up. Yes, I'm sure. You previously marked this answer as accepted.
Are you sure you want to unaccept it? DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Posted January 24, Add a comment. Subscribe Subscribed. Submit an Answer Submit an answer. Once set, then try running the command below to restart MySQL and see if you receive an error. Reply Report. Related question install mysql 3.
0コメント