Home Database Mysql Tutorial MYSQL安装时解决要输入current root password的解决方法

MYSQL安装时解决要输入current root password的解决方法

Jun 07, 2016 pm 06:03 PM
current root

在装MYSQL的时候发现要输入current root password不记得以前在电脑里装过(你的系统曾经装过MYSQL在重装就会要求输入原来设定的密码,如果是第一次安装就不会出现),在网上苦苦搜寻解决方法。

终归结出以下解决方法:

1.清除MYSQL的安装目录,默认是C:\Program Files

2.清除MYSQL数据存放目录,一般在C:\Documents and Settings\All Users.windows\Application Data目录下

(需要注意的时Application Data这个文件夹默认是隐藏的,要通过 工具->文件夹选项->查看->显示所有

文件与文件夹 来设置隐藏文件可见)。

删除MySQL文件夹

3.这步很重要,之前不管我怎么卸载MYSQL清空残余文件都还是要输入原始密码,后来试试找了下,清空后果然有效。

删除数据,通过regedit,删除以下几个文件:

引用

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL

最后 万事OK!!!。。。
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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

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)

Log in to Ubuntu as superuser Log in to Ubuntu as superuser Mar 20, 2024 am 10:55 AM

In Ubuntu systems, the root user is usually disabled. To activate the root user, you can use the passwd command to set a password and then use the su- command to log in as root. The root user is a user with unrestricted system administrative rights. He has permissions to access and modify files, user management, software installation and removal, and system configuration changes. There are obvious differences between the root user and ordinary users. The root user has the highest authority and broader control rights in the system. The root user can execute important system commands and edit system files, which ordinary users cannot do. In this guide, I'll explore the Ubuntu root user, how to log in as root, and how it differs from a normal user. Notice

Step by step using Python to delete long path files under Windows Step by step using Python to delete long path files under Windows Apr 12, 2023 pm 01:31 PM

0x01 Background of the article Recently, the storage of a business system of the author's company is approaching the limit, and the server will soon be unable to run. Because the business system A contains multiple subsystems A1, A2, A3... An, the middle of these subsystems Due to design reasons, the stored files are all stored in the same parent directory. The only difference is that the names of files and folders generated by different subsystems all start with the name of the subsystem. For example, the files generated by the A1 subsystem are all named A1xxxxxx​, and the file names generated by the A2 subsystem are all A2xxxxx. Now we need to delete the historical files of some of these subsystems to free up server space. Dozens of terabytes of data are stored together. Manual deletion will definitely not show up. We can only use program automation.

How to change the root user name in Linux How to change the root user name in Linux May 18, 2023 pm 07:50 PM

1. Taking CentOS as an example, after logging in, modify /etc/passwd and /etc/shadow, change the root starting on the first line to a new user name (such as admin), and save through wq! after modification. 2. After modifying and saving, it will take effect after restarting the server. You can check the permissions of the file and see that the account column has changed to admin, as follows: Note: The default user with the highest administrative authority in Linux is root, uid is 0. Only uid is recognized in the system, so as long as uid is 0, the system is regarded as the highest administrative user. However, there may be certain problems with applications. Some software uses the root user by default, so if you have limited understanding of software applications,

What is the difference between the root and alias directives in Nginx configuration? What is the difference between the root and alias directives in Nginx configuration? May 12, 2023 pm 12:16 PM

Both root and alias can be defined in the location module, and are used to specify the real path of the requested resource, for example: location/i/{root/data/w3;} requests http://foofish.net/i/top.gif When this address is used, the corresponding real resource in the server is the /data/w3/i/top.gif file. Note: The real path is the value specified by root plus the value specified by location. And alias is just like its name. The path specified by alias is the alias of location. No matter how the value of location is written, the real path of the resource is the path specified by alias, such as

Advantages and Disadvantages of Rooting Your Phone Advantages and Disadvantages of Rooting Your Phone Jul 06, 2023 pm 04:53 PM

The benefits of rooting your phone: 1. You can back up the system; 2. You can use advanced programs; 3. You can modify and delete system programs; 4. You can install programs on the SD card; 5. You can modify system fonts, etc. Disadvantages: 1. After the mobile phone is rooted, it is easy to be invaded by Trojan viruses; 2. System damage may occur due to incompleteness and software compatibility issues; 3. After the mobile phone is rooted, the software mistakenly deletes system files, causing system errors; 4. There is a risk that user privacy will be leaked after rooting the phone, etc.

How to install Linux programs without root permissions How to install Linux programs without root permissions Jan 13, 2024 pm 03:27 PM

For some shared machines, we may not have root permissions, so it will be a little troublesome to install the program. In fact, as long as the relevant files are placed in their own directories, the root permission restrictions can be waived. I installed libevent without root permissions. Just specify the installation path to my /home directory through prefix: ./configure--prefix=/home/****/libevent--enable-sharedmakemakeinstallmakeverify#libevent test, others The installation may not be available.

How to set password for root in mysql How to set password for root in mysql May 29, 2023 pm 01:22 PM

Step 1: First log in to MySQL and enter the following command in the terminal to enter the MySQL console: sudomysql If you are prompted for a password after entering this command, please enter the password of your root user. Step 2: Change the password. After we enter the MySQL console, we can start to change the password of the root user. Set the password as follows: ALTERUSER'root'@'localhost'IDENTIFIEDWITHmysql_native_passwordBY'new_password&am

What does it mean that the current phone is not rooted? What does it mean that the current phone is not rooted? Sep 19, 2023 pm 02:01 PM

The current mobile phone is not rooted, which means that the operating system of the mobile phone has not obtained super user permissions. In the Android system, root permission is the highest permission, which allows users to make in-depth modifications to the system and access sensitive system files. The phone is still in the default state. status, no system permissions have been modified, which means that users cannot directly access and modify system files, and cannot perform some advanced system operations. Ordinary users using unrooted mobile phones can use the basic functions of the mobile phone and install applications normally. There will be restrictions in certain special scenarios.

See all articles