Doug Kimzey
Doug Kimzey

Reputation: 1184

Setting up new instance of MySQL what is Current Root Password?

I am new to MySQL and am setting up a new instance of MySQL using the Windows Installer and am being prompted for two passwords.

The Current Root Password and the MySQL Root Password.

Is there a standard Current Root Password for new installations?

What is the difference between the two passwords.

Upvotes: 12

Views: 99797

Answers (7)

Artemis J
Artemis J

Reputation: 1

It seems you have a previous installation in place or its not properly uninstalled

  • Uninstall the current MySQL Server from Control Panel.
  • Navigate to Program Files > MySQL > delete the MySQL server folder from here
  • Navigate to C > Program Data > MySQL > delete the MySQL server folder from here
  • Install fresh MySQL Server. This time you wont get 'Current root password', instead you will be asked to set a new password.

Upvotes: 0

Sneh
Sneh

Reputation: 61

issue:- new mysql installation steps asks for current root password when it ideally should be prompting set new password option.

solution :-Issue could be due to existence of a previous unsuccessful mysql installation, leaving behind contents even after uninstalling.(at c:mysql,c:/ program files/mysql,c:/program data/mysql ) In my case they required manual deletion;after which new installation of mysql went on smooth . (had to msconfig too, to handle unending windows hanging sometime during the process.)

Upvotes: 6

Hrithik Raj
Hrithik Raj

Reputation: 23

Try switching to root user using su or sudo -i, if possible, then use password as password.

Upvotes: 0

Shilpa Yadav
Shilpa Yadav

Reputation: 11

Uninstall mysql all setup fully Delete all files related to MySQL From program files, program files x86:

C>username>appdata_>Roaming>mysql

After that install mysql

Upvotes: 1

Tarun Pratap
Tarun Pratap

Reputation: 51

The community wiki has an excellent guide on the steps that one needs to follow.

Please note that uninstalling MySQL from the installer gives the option to remove all data as well, which by default is unselected.

Check the box and then uninstall MySQL.

After that, follow the guidelines in the community wiki.

Upvotes: 1

user6221192
user6221192

Reputation:

If you don't remember your current root password and want to install new instance of MySQL and you have applied other ways like "-init-file.txt", but still failed.

There is another solution which worked for me. Uninstalling MySQL from control panel didn't remove all files, it left some references in the system.

  1. To delete MySQL files completely, open the folder path C:\Users\your pc name\AppData\Roaming and delete the MySQL folder.

  2. Then remove one more reference which is in C:\ProgramData\MySQL, if not visible check your folder view options and uncheck "Don't show hidden files".

  3. The last reference of MySQL exists in our system services:

    Type "Services" in the search box of the taskbar. Find services related to MySQL and note them down. I have two in my case(MySQLRouter and MYSQL80).

    Open the command prompt with administrator and type:

    sc delete "ServiceName",

    In my case:

    sc delete MySQL80

    sc delete MySQLRouter

    Ensure all services related to MySQL are removed by using the above command. Restart your computer and install your MySQL instance with a new configuration.

Upvotes: 35

Mad Dog Tannen
Mad Dog Tannen

Reputation: 7242

The standard password for user root is simply: password

Each user had its own password. So a password must belong to a user. So the only difference of password are just what they contain.

root is AFAIK the only user created upon installation. Did you create a new user after installation?

Upvotes: 8

Related Questions