Solutions to the problems occur when you install mysql

A, start service failed to solve the MySQL reload when
there is a problem with regard to mysql-5.1.45-win32.msi in the windows xp install mysql: 0 Tips Error: could not start the service mysql error appears. After research and try to reinstall finally succeed!

The following steps:
  
1. Start -MySQL-MySQL Server 5.1-MySQL Server Instance Config Wizard-Next-Remove Instance.
  2, enter the Add or Remove Programs, select Uninstall MySQL find, select remove.
  3. Find the registry items related to Mysql, delete.
  4, delete the C disk MySQL directory.
  5, into the MySql installation directory, delete the directory.
  No need to restart the computer, direct re-install.

  Note: 1) back up the registry before modifying it, a problem can be restored;
2, before reinstalling MySql, it is best to look at the database backup.

Step 3 Remove the registry in the following, some systems may be somewhat different version, but generally as follows:
A.HKEY_LOCAL_MACHINE \ the SYSTEM \ ControlSet001 \ Services \ Eventlog \ the Application \ MySQL directory delete
B.HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL directory delete
C.HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL directory delete
D.HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControl001t \ Services \ MYSQL directory
E.HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControl002 \ Services \ MYSQL directory
F.HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MYSQL directory


Two, MySql error code 1045 solution
error code 1045
Access denied for User  'root' @ 'localhost'  (the using password: YES)
solution is to reset the root user password, operating in the Windows platform steps are as follows:
1, the system Log on to the system;
2, if the MySQL server is running, stop it.
      If the server is running as a Windows service, enter the service manager: Start Menu -> Control Panel -> Administrative Tools -> Services
      If the server is not running as a service, you may need to use the Task Manager to force it to stop.
3, create a text file and placed in a single row in the following order:
      the SET PASSWORD the FOR  'the root' @ 'localhost'  = PASSWORD ( 'mynewpassword');
      Save the file with an arbitrary name. In this example, the file C: \ mysql-init.txt.
4, enter the DOS command prompt: Start Menu -> Run -> cmd
      assume you have MySQL installed to C: \ mysql. If you installed MySQL to another location, make the appropriate adjustments to the following command.
      At the DOS command prompt, execute the command:
            C: \> C: \ MySQL \ bin \ mysqld-NT --init-File = C: \ MySQL-init.txt
      When the server starts by "--init-file" option to perform (action: file when you start to read from the specified SQL command) the contents of the named file, change the root password. When the server started successfully, delete the C: \ mysql-init.txt.
5. Stop the MySQL server, then restart it in normal mode. If the server is running as a service, Windows service window should start it. If you manually start the server, under normal circumstances can be like using the command.
Attachment:

Other methods
Method One: (recommended) 
MySQL> MySQL use;
MySQL> UPDATE the User the SET Password = PASSWORD ( 'your new password') the WHERE the USER = 'root';  
MySQL> FLUSH PRIVILEGES;  
MySQL> quit 

Method two:  
directly /etc/mysql/debian.cnf file [client] section provided username and password:  
# MySQL -udebian -p-SYS-MAINT  
the Enter password: <password entry [client] Section>  
MySQL> the UPDATE the sET pASSWORD = password User ( 'NewPassword') = WHERE the USER 'the root';  
MySQL> the FLUSH PRIVILEGES;  
MySQL> quit  
# MySQL -uroot--p  
the enter password: password newpassword <enter the new>  
MySQL>  
content reference: script house


Another way
Windows:
 
1. administrator login system, stop the mysql service or the end of the process mysqld-nt
2. Go to the command line to install mysql directory assumptions installation directory is d:. \ Mysql \, CMD into the command line
3. run d: \ mysql \ bin \ mysqld -nt --skip-grant-tables start mysql, close inspection authority
4. run d: \ mysql \ bin \ mysqladmin -u root flush-privileges password "newpassword" reset root password
5. restart the mysql service


Installation, could not start the service mysql error occurred while reloading: Error 0 or start service stops moving 
questions about XP install mysql-5.1.45-win32.msi, and my whole more than five hours, finally get !

When installed, there will sometimes could not start the service mysql error: 0 an error.

Solving steps:

1、开始-MySQL-MySQL Server 5.1-MySQL Server Instance Config Wizard-Next-Remove Instance。

2, enter the Add or Remove Programs, select Uninstall MySQL find, select remove.

3, into the registry.

3.1, view HKEY_LOCAL_MACHINE \ key \ under the SYSTEM CurrentControlSet \ Services, if relevant key mysql (mysql, mysqladmin) is deleted, you can; 
3.2, view HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ under there mysql directory will be deleted.

3.3 Access to the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ mysql directory will be deleted.

3.4, view HKEY_LOCAL_MACHINE \ there \ ControlSet001 under SYSTEM \ Services About Mysql key, there are deleted, you can.

3.5, view HKEY_LOCAL_MACHINE \ There \ ControlSet002 under SYSTEM \ Services About Mysql no key, there are deleted, you can.

3.6, view HKEY_LOCAL_MACHINE \ there \ CurrentControlSet under SYSTEM \ Services About Mysql key, there are deleted, you can.

4, delete the C: \ Documents and Settings \ MySQL directory under the All Users \ Application Data directory.

5, into the MySql installation directory, delete the directory.

No need to restart the computer, direct re-install.

Note: Before reinstalling MySql, it is best to look at the database backup.


Could not start the service mysql error occurs MySQL installation: 0 an error 
could not start the service mysql error occurred while MySQL installation: 0 an error
phenomenon: When installing MySql, Execute configurattion steps when running in running Server Instance Configuration wizard in the third error into the start service, an error message is not be started.Error the service could: 0
and open Administrative tools -> services, mysql service can not be started manually.
The reason: The reason is usually because mysql installed, uninstall not clean result.
Methods: completely clean uninstall before installing. (Note that when you uninstall a look service service, if there mysql service, the test will not clean uninstall)
steps:
First, see Administrative Tools -> Services mysql service will be stopped;
two, then open cmd into your MySQL bin directory , for example, C: / Program Files / MySQL / MySQL Server 5.0 / bin then

With the following command mysqld -nt -remove
three, well below into the Add or Remove Programs, select Uninstall find MySQL, remember to choose remove.
After uninstalling open the registry, view the key under HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlSet / Services, if relevant

mysql key (mysql, mysqladmin) is deleted, then;
four, restart, delete the directory mysql installation of the residue (C: / Program Files / MySQL ) instances and databases and directories (C: / Documents and

Settings / All Users / Application Data / MySQL) ( see the Service, the Service has no mysql);
[Note] 1, this step will delete database-related data, user names, passwords, etc., please backup before deleting.
            2, the most critical step, I checked the Internet a lot are less this step leads to reinstall is not successful.
Fifth, re-install mysql, you can

MYSQL installation could not start the service mysql error occurs: 0 handle
                  when you, could not start the service mysql when reloading the installation 
                  error: 0 error, you can try the following two methods. 
                  First, the way 1
                  MySQL installation emergence could not start the service mysql error: 0 an error, the solution:
                  First, in the Administrative Tools -> Services inside the MySQL service to stop, and then open cmd enter under your MySQL bin directory, for example, 
                  C: \ program Files \ MySQL \ MySQL Server 5.0 \ bin and then use the following command-NT mysqld 
                  -remove then displays ...... success! 
                  well below into the Add or Remove programs, select uninstall find MySQL, remember to choose remove. Finally delete MySQL directory, as well as directory database is also deleted.
                  A way 2
                  see the service there is no mysql, if the service stopped;
                  install mysql 5.1.33, running Server Instance Configuration 
                  Execute configurattion steps of the wizard in the third Start 
                  Service into an error, the error message is not Start at The Service MySQL Could 
                  (This happens generally because had installed mysql, uninstall not clean result. After uninstalling and then reinstalling restart Note facie service, if not uninstalled, you can use NT-mysqld 
                  -remove unloading).
                  In the Add or Remove Programs in Control Panel to run the mysql unloading;
                  after unloading open the registry, view HKEY_LOCAL_MACHINE \ \ SYSTEM CurrentControlSet \ Services 
                  key under, if relevant key mysql (mysql, mysqladmin) is deleted, you can;
                  restart the mysql installation directory residual deleted (see service, the service has no mysql);
                  reinstall mysql after installing the first Instance do not run the Configuration Server. 
                  Wizard, restart after running the wizard from the start menu, you can.
                   MySQL 5.1 installation process mid-year report apply security setting error solutions favorites 
                  Mysql安装错误apply security settings 解决方法
                  The security settings could not be applied to the database 
                  because the connection has failed with the following error.
                  Error Nr. 1045
                  Access denied for user 'root'@'localhost' (using password: 
YES)
                  If a personal firewall is running on your machine, please make 
                  sure you have opened the TCP port 3306 for connections. 
                  Otherwise no client application can connect to the server. 
                  After you have opened the port please press [Retry] to apply 
                  the security settings.
                  If you are re-installing after you just uninstalled the MySQL 
                  server please note that the data directory was not removed 
                  automatically. Therefore the old password from your last 
                  installation is still needed to connect to the server. In this 
                  case please select skip now and re-run the Configuration 
                  Wizard from the start menu.
                  MySQL 5.1 安装过程中报apply security setting错误的解决办法
                  1, 卸载MySQL
                  2, 删除目录 C:\Documents and Settings\All Users\Application 
                  Data\MySQL
                  3, 重新安装MySQL 就 OK 啦
                  ------------------------------------------
                  [MySQL] Could not Start at The Service MySQL solution to
                  install mysql 5.1.33, running the Configuration Instance Server 
                  the Execute configurattion steps of the wizard in the third Start 
                  Service into an error, the error message is not Start at the Service MySQL Could 
                  (this happens usually because the equipment is too mysql uninstall not clean result. after the restart unloading and reloading. Note facie service, if not uninstalled, you can use NT-mysqld 
                  -remove unloading).
                  Here's how:
                  View There are no mysql service, if the service stopped;
                  run the Add or Remove Programs in Control Panel, uninstall the mysql;
                  after unloading open the registry, view HKEY_LOCAL_MACHINE \ the SYSTEM 
                  \ CurrentControlSet \ Services 
                  Under the key, if relevant key mysql (mysql, mysqladmin) is deleted, you can;
                  restart the mysql installation directory residual deleted (see Service, the Service has no mysql);
                  reinstall mysql. Do not run after you install the Configuration Instance Server 
                  Wizard, restart after running the wizard, to the start menu.
                  PS: One method worth considering
                  ------------------------------------------ ---
                  msyql installation to the last step start service error solution
                  1, the control panel inside the first mysql deleted.
                  2. c drive to the C: \ Program Files directory mysql directory to delete.
                  3. If you have set the other disk directory should be deleted. also delete empty directories
                  4. regedit into the registry
                  HKEY_LOCAL_MACHINE / SYSTEM / ControlSet001 / Services / Eventlog / Applications / MySQL
                  HKEY_LOCAL_MACHINE / the SYSTEM / ControlSet002 / Services / Eventlog / Applications / MySQL
                  HKEY_LOCAL_MACHINE / the SYSTEM / CurrentControlSet / Services / Eventlog / Applications / MySQL
                  so, delete all!
                  (Tip: Find a "mysql" with F3 cycle)
                  5. If the Task Manager can also delete content about mysql
                  6, the firewall off
                  7, re-install mysql (Here I do not have to restart the computer)
                  reload time if necessary, restart your computer disable IIS, and deleting temporary files in the temp.
                  it does not work, when the configuration mysql, mysql service to another service name.
                  ************************************************************ ************************************************** ******************
                  ---------------------------
                  error deleting items.
                  ---------------------------
                  You can not delete LEGACY_MYSQL51: Error deleting items.
                  ---------------------------
                  OK  
                  ---------------------- -----
                  the solution: increase the administrators registry entry in all the right permissions
                  may arise can not create windows service for the installation mysql 
                  mysql.error: 0 errors, most due to the wrong reasons or to re-install mysql mydql upgrade, use MySQL 
                  the Configuration Wizard generates.
                  Solution: regedit into the registry, with a circulation F3 Find "mysql", delete all and re-install mysql, you can.

                  It suggested that if the unit is installed a firewall, make sure port 3306Mysql default port has been opened, I installed the rising firewall, but I do not know how to properly set up, just the Internet to find ways: open port 3306


                  Rising open firewall port settings

                  First, start the main program Rising Firewall, click "Menu - Settings"

                  Second, select the "IP Rules settings", pop-up dialog box, click on the "Add Rule" button, set the following in the corresponding place, save and exit.


                  Third, follow the same steps to release the port 27991, just the local development of the port can be changed to 27991. 
                  Fourth, the release transaction: Select "Access Rules" tab in the main interface, click on the "Add Rule", you can select the location where the transaction program. 
                  Fifth, if the other firewall, refer to the settings.

Mysql failed to solve the reloading start service
 because the server is unstable, trying Soares Star campus network from another server platform, there is a problem with regard to mysql-5.1.45-win32.msi at windows server 2003 installation mysql: could not start the service appear mysql error: 0 an error. After research and try to reload finally success!
  1, start -MySQL-MySQL Server 5.1-MySQL Server Instance Config Wizard-Next-Remove Instance.
  2, enter the Add or Remove Programs, select Uninstall MySQL find, select remove.
  3. Find the registry items related to Mysql, delete.
  4, delete the C disk MySQL directory.
  5, into the MySql installation directory, delete the directory.
  No need to restart the computer, direct re-install.
  Note: 1) back up the registry before modifying it, a problem can be restored; 2) before reinstalling MySql, it is best to look at the database backup.
 

Reinstall MYSQL Apply security settings1045 error or an error occurs start service solutions

Today, in order to install MySQl, out of more than 5 minutes, did not eat lunch, first start service is not passed, then Apply security settings is not by (a reported Error 1045), then finally passed, the solution is as follows:

Solution 1. unloading heavy equipment, no root password, because MySql default password is blank.

Solution 2. Maintain current password, open the "MySQL Command Line Client" enter your password (the login set during installation, if the password can not try a blank password, it is possible to install password setting is invalid).

After a successful login enter the command:
the SET PASSWORD the FOR  'root' @ 'localhost'  = PASSWORD ( 'MySQL'); 'MySQL' for the new password you want to set. Change passwords after a successful configuration Mysql OK.

Attached: Mysql error beep closed approach, open my.ini file in the installation directory MySql, added the statement 'no-beep' under [mysql] line, save and restart Mysql service OK.

Guess you like

Origin www.cnblogs.com/rfj123/p/10972894.html