Install and uninstall mysql service in windows _ PHP Tutorial

Source: Internet
Author: User
Install and uninstall the mysql service in windows. Install, uninstall mysql service install mysql service create and edit a bat file, execute it (e: mysqlinmysqld-nt.exe is the installation directory, fill in according to the actual situation) @ ECHOOFF install, uninstall mysql service


Install mysql service

Create and edit a bat file with the following content, run it (e: mysqlinmysqld-nt.exe is the installation directory, fill in according to the actual situation)

@ ECHO OFF

E: mysqlinmysqld-nt.exe-install

Net start mysql



Uninstall mysql service

Create and edit a bat file to execute (e: mysqlinmysqld-nt.exe is the installation directory, fill in as needed)

@ ECHO OFF

Net stop mysql

Mysqlinmysqld-nt.exe-remove




--------------------------------------------


MYSQL cannot be started. the specific performance is as follows: dig is a direct double-hitting mysqld.exe or the command prompt does not respond. (XP system)


Then, choose Control Panel> Management Tools> Services> mysql method to start. a prompt box is displayed, indicating that the process is terminated unexpectedly ......


I had to uninstall mysql for reinstallation, and found that the problem was not solved. I went to ask someone else to get a prompt to reinstall the system. I started to get crazy ......



Now, the painful memories are here. how can we solve them.


The first step is to uninstall the mysql service. otherwise, even if the mysql program is uninstalled, mysql is still in the service, and the problem cannot be solved. assume that my mysql is installed in C: MYSQL and runs mysqld-nt-remove (with spaces in the middle) at the command prompt c: mysqlin. a message indicating successful uninstallation is displayed. then, uninstall mysqlin the Control Panel> add or delete the program, and then install mysqlto run mysqld.exe(mysqld-nt.exe in win2000). the command prompt box flashed through, so that you can see the mysql process in the task manager, that is to say, your mysql has been revived again :)

Install mysql service create and edit the following bat file, execute it (e: mysqlinmysqld-nt.exe is the installation directory, fill in according to the actual situation) @ echo off...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.