Home Database Mysql Tutorial 还原精灵还原了mysql怎么办_MySQL

还原精灵还原了mysql怎么办_MySQL

Jun 01, 2016 pm 01:34 PM
mysql Registry computer Elf

bitsCN.com

还原精灵还原了mysql怎么办

 

 最近在学校机房上实训课,所以要频繁往来于机房。而机房电脑上安装的还原精灵则每天把我的mysql还原了。真是头痛不已啊。

 

    幸好还原精灵只还原注册表文件,并不还原硬盘。所以,我们还是有希望的。

 

   一.备份注册表

 

   没备份注册表的请卸载了重装再安装一次吧。目前我也没有解决的办法。。。

 

        备份过程如下:

 

        原理:mysql再在注册表里的user 和local_machine留有痕迹,所以我们要对其备份。

 

        1.运行 regedit进入注册表

 

        2.导出local machine-》software-》mysql的注册表

 

        3.导出user-》software-》mysql的注册表

 

        注意保存

 

  二.还原注册表

 

        把备份好的注册表双击导入就可以了。

 

   三.安装mysql的服务

 

       1. 进入mysql/bin文件夹(比如该文件夹在E:/Program Files/MySQL/MySQL Server 5.5/bin

 

                                    则 -》e:  (进入e盘)

 

                                        -》cd E:/Program Files/MySQL/MySQL Server 5.5/bin  (进入该目录))

 

     2.-》mysqld -install (安装该服务)

 

    3.-》net start mysql  (此时发生错误,可按照错误搜索,网上有很多解决方案)

 

        但是你应该可以这么解决

 

        找到安装目录下的mysql,加入如下内容,

 

    # set basedir to your installation path 设置mysql的安装目录

    basedir=E:/Program Files/MySQL/MySQL Server 5.5 

    # set datadir to the location of your data directory 设置数据库目录 默认在安装目录下的data文件夹

 

    datadir=E:/Program Files/MySQL/MySQL Server 5.5/data

    [WinMySQLAdmin] 

    Server=G:/mysql/bin/mysqld-nt.exe

 

    4.-》net start mysql  服务终于启动了 。

 

bitsCN.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if my win11 wallpaper is locked and cannot be changed? What to do if my computer wallpaper is locked and cannot be changed? What should I do if my win11 wallpaper is locked and cannot be changed? What to do if my computer wallpaper is locked and cannot be changed? Jun 09, 2024 pm 08:58 PM

What should I do if my win11 wallpaper is locked and cannot be changed? What to do if my computer wallpaper is locked and cannot be changed?

How to fine-tune deepseek locally How to fine-tune deepseek locally Feb 19, 2025 pm 05:21 PM

How to fine-tune deepseek locally

deepseek image generation tutorial deepseek image generation tutorial Feb 19, 2025 pm 04:15 PM

deepseek image generation tutorial

What should I do if my Win10 password does not meet the password policy requirements? What to do if my computer password does not meet the policy requirements? What should I do if my Win10 password does not meet the password policy requirements? What to do if my computer password does not meet the policy requirements? Jun 25, 2024 pm 04:59 PM

What should I do if my Win10 password does not meet the password policy requirements? What to do if my computer password does not meet the policy requirements?

How to turn off location services in Win10? Tips for turning off the positioning system on your computer How to turn off location services in Win10? Tips for turning off the positioning system on your computer Jun 07, 2024 pm 04:02 PM

How to turn off location services in Win10? Tips for turning off the positioning system on your computer

How to fix mysql_native_password not loaded errors on MySQL 8.4 How to fix mysql_native_password not loaded errors on MySQL 8.4 Dec 09, 2024 am 11:42 AM

How to fix mysql_native_password not loaded errors on MySQL 8.4

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Mar 05, 2025 pm 05:57 PM

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node?

What to do if explore.exe file system error occurs? How to solve the problem of lost exeplorer file on win7 computer What to do if explore.exe file system error occurs? How to solve the problem of lost exeplorer file on win7 computer Jun 04, 2024 pm 07:38 PM

What to do if explore.exe file system error occurs? How to solve the problem of lost exeplorer file on win7 computer

See all articles