Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Error In Installing MySQL Server, MySQL server cannot be started
jedipi
post Mar 20 2005, 10:27 PM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



I try to upgrade my MySQL server from 4.018 to 4.1.10a.
Firstly, I downloaded mysql-4.1.10a (not the essential one) for win XP
Then I install the new version after the old version was uninstalled.

After the installation process, Instance Configurator comes up to help for the configuration.
But an error occured when it try to start the MySQL service.
Error messageis "cannot create windows service for MySQL. Error:0"

So my MySQL server cannot be started. It is running win XP on my computer.
Does anybody can tell me what is wrong?.

Thanks (sorry for my bad english)
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Mar 21 2005, 06:10 AM
Post #2


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



    [/tab]This is a known problem. Do you remember how you'd to create a MySQL Service and specify a common windows service name for MySQL when you setup 4.018 ? When you simply uninstall MySQL, it removes the present installation - without terminating the service. Under such circumstances, the original .exe file that runs as the windows service doesn't get deleted, and still keeps loading/running in the background. When you try to install a newer version over it, the running service prevents the .exe being overwritten and this generates that error message you're getting.

[tab]Your simplest way out, is to re-install the old MySQL again, use it to Stop and Disable the Service and then uninstall it. Next install the newer version.

    Second method: Goto Control Panel > Administrative Options > Services. From the list of services, find out the MySQL service and Stop It. Then Disable it from running for good. Next go to the mysql installation directory and remove it entirely. Now you can install the new version without a hitch.

Give it a try and let me know if you succeeded. All the best smile.gif
Go to the top of the page
 
+Quote Post
rapco
post Mar 22 2005, 02:08 AM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 292
Joined: 26-September 04
From: Bogotá, Colombia
Member No.: 868



There's a related topic that may be useful:
http://www.astahost.com/index.php?showtopic=3430&hl=

It's not only the MySQL server, it php also...

check my post there
Go to the top of the page
 
+Quote Post
jedipi
post Mar 22 2005, 12:24 PM
Post #4


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



I did stop the MySQL service before I uninstall it.
After it was uninstalled, MySQL service was deleted as well.

but taht error message still keep coming up.

So, I opened regedit, and deleted all entries which contain the word "MySql".

then, it works.

Why dose the MySQL uninstaller not just delete those entries.
are those entries keeped for any purpose?


Go to the top of the page
 
+Quote Post
vhortex
post Apr 23 2005, 07:09 AM
Post #5


Guilty Until Proven Innocent
Group Icon

Group: Members
Posts: 372
Joined: 13-April 05
Member No.: 3,937



QUOTE(jedipi @ Mar 22 2005, 08:24 PM)
I did stop the MySQL service before I uninstall it.
After it was uninstalled, MySQL service was deleted as well.

but taht error message still keep coming up.

So, I opened regedit, and deleted all entries which contain the word "MySql".

then, it works.

Why dose the MySQL uninstaller not just delete those entries.
are those entries keeped for any purpose?
*



If you are on XP with NTFS partitions and service pack 2, things wont work as they used to.

Everything that needs to be uninstalled must have the ownership set to your current logon account and all of the related files (exes and registry) must not be in use or running before they can be deleted or overwritten.

If you are in NTFS system, try to create 2 accounts in windows. One is an admin and one is an ordinary user. Install Microsoft office using the admin account and logoff.

Logon using the normal account and use "microsoft photo editor" which is the standard photo editor of MSoffice. You will then notice that you cannot open any files using that program since the registry is locked to the admin account.

***********

hope this helps.
Go to the top of the page
 
+Quote Post
mark_fusillade
post May 13 2005, 03:10 AM
Post #6


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 1
Joined: 13-May 05
Member No.: 5,028



After banging my head against my keyboard until the S, Q, and L keys sprang out like shrapnel I finally figured out what the problem is and how to solve it.

I was using the MySQL 4.1.11 Installer on my Window XP computer. After the installation completed the installer automatically jumped into the MySQL Server Instance Config Wizard. When the wizard tried to complete the configuration the “Error: Cannot create Windows service for MySQL. Error: 0,” popped up. This is a Windows System Error.

What is happening is a preinstalled MySQL service is installed and recognized in the Windows background. Weather or not it is disabled the operating system will not allow another MySQL service to be installed. To verify this you can check the Services. Do this by clicking on the…

> “Start Menu”
> “Control Panel”
> “Administrative Tools”
> “Services”

The services are listed alphabetically. Scroll down to find MySQL. If you find it you have found your problem. (Incidentally, while I was in here I right-mouse-clicked on the service and opened properties, stopped the service and then disabled the service. The problem still didn’t go away and my head-banging-against-keyboard started up again.) The solution is to remove the service, but there is no option for that in the Services window. To delete the service you need use the command prompt. Start the command prompt by clicking on the….

> “Start Menu”
> “All Programs”
> “Accessories”
> “Command Prompt”

This will bring up the Command window. To delete the MySQL service type the following…

sc delete mysql

…and hit the enter key. If it is successful the Command Prompt window will give the following feedback.

[SC] DeleteService SUCCESS

For trivia’s sake what you communicate through the Command Prompt window when you type this is…
  • sc = you contact a command line program used for communicating with the NT Service Controller and services
  • delete = deletes a service from the registry
  • mysql = the service that gets deleted
What you do next depend on weather MySQL is still installed. If you didn’t uninstall MySQL click on the…

> “Start Menu”
> “All Programs”
> “MySQL”
> “MySQL Server 4.1”
> “MySQL Server Instance Config Wizard”

Run through the Config Wizard. MySQL should set up with out any problems.

If you already uninstalled MySQL then run though the installer and things should work out.
Go to the top of the page
 
+Quote Post
iGuest
post Jan 11 2008, 06:48 AM
Post #7


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



solution to MySql problem: cannot start service error 0
Error In Installing MySQL Server

This problem usually occurs when you reinstall MySql.

Solution:

1)delete the current installation(windows users go to control panel, then add or remove programs, then select MySql and delete it).
2)Restart.
3)Even though you have uninstalled the software, MySql keeps some files of previous installation. Just go to the directory where MySql was previously installed and delete the entire folder.(Windows users , go to the see:\program files, delete MySql folder. In some cases MySql may have been directly installed in see drive, delete the MySql folder from see drive in this case).
4)install MySql once again.
You wont get service cannot be started error 0 this time. Enjoy!


-ash_still_there
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. MySQL - Trouble With Bulk Insert Statements(3)
  2. Recover Tables From A MySQL .frm File(8)
  3. Mirror My MySQL Database To Another Mysql Server(4)
  4. How To Connect MySQL With Flash?(8)
  5. MySQL, Multiple Tables(24)
  6. Navcat For MySQL(7)
  7. Permission Problem With Mysql Database Creation(8)
  8. Mysql And Php(15)
  9. Problems With Php Saving Data Into Mysql(6)
  10. Login System Using A Mysql Db(5)
  11. Oracle Vs. Mysql Vs. Postgresql(9)
  12. Subqueries In Mysql(1)
  13. Apache Php With Mysql On Windows [solved](9)
  14. Sql Syntax Error [corrected](2)
  15. Not Understanding Mysql(4)
  1. Mysql Script Help(3)
  2. Mysql - So Hard(14)
  3. Mysql Problem(1)
  4. Sun Bought Mysql(6)
  5. Mysql Backup With Another Address?(4)
  6. I Have An Error With My Mysql Connection(7)
  7. Mysql And User File_priv(0)
  8. Mysql Database Management(1)
  9. Mysql Database Entry By Excel Sheets(2)
  10. Mysql On Computer(9)
  11. Database Access On Remote Server W/jsp(0)
  12. Any Website Provide Free Host Mysql Host?(4)
  13. Mysql Multiple Tables(1)


 



- Lo-Fi Version Time is now: 21st August 2008 - 11:26 PM