|
|
|
|
![]() ![]() |
Mar 20 2005, 10:27 PM
Post
#1
|
|
|
Premium Member 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) |
|
|
|
Mar 21 2005, 06:10 AM
Post
#2
|
|
|
PsYcheDeLiC dR3aMeR 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 |
|
|
|
Mar 22 2005, 02:08 AM
Post
#3
|
|
|
Premium Member 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 |
|
|
|
Mar 22 2005, 12:24 PM
Post
#4
|
|
|
Premium Member 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? |
|
|
|
Apr 23 2005, 07:09 AM
Post
#5
|
|
|
Guilty Until Proven Innocent 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. |
|
|
|
May 13 2005, 03:10 AM
Post
#6
|
|
|
Newbie [ Level 1 ] 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…
> “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. |
|
|
|
Jan 11 2008, 06:48 AM
Post
#7
|
|
|
Newbie [ Level 1 ] 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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 21st August 2008 - 11:26 PM |