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

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.

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.
To delete MySQL files completely, open the folder path C:\Users\your pc name\AppData\Roaming and delete the MySQL folder.
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".
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.

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?

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.)

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.

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

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

Related

I Didn't Get Option To Set Root Password Of Mysql During Installation

I didn't get option to set root password of mysql during installation. Now, I am unable to form instance I am beginner in mysql I have tried reinstallating the software watching youtube still didn't got that option.
Actually I had solved this problem the day after posting this question.. My main problem was I was not getting wizard for saving information regarding root password port and etc. I figured after installing quite a few time that I have been clicking on update before the actual product installation as that was first question before installing... Not having previous verison of mysql I was unable to get root wizard i.e I was able to install product but while create database or server I was having trouble with password because it was not set while installation process... Clicking on no before installation for update solved my issue
This might be useful if you have installed mySql community server.
Download MySQL Installer from here if you haven't already, then open the installer and you might see some products listed in the section, then click on reconfigure of mySQL Server, it will take you through the instructions of setting up few things including your password(which you'll probably find after clicking "next" a few windows).

cs cart - mySQL error on local host

I have an issues installing cs-cart on local enviroment, these are the errors:
MySQL settings are not valid
Could not connect to database
I've created a database named cart - and this is the name that I write in the MySQL database name from the installation wizard.
I've created an username and a password for this username - both are filled in correctly.
I have some when I open PhpMyAdmin -
A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is 4.4.14.1, released on 2015-09-08.
The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why.
Or alternately go to 'Operations' tab of any database to set it up there.
I use XAMPP.
Any thoughts on how can I solve this?
Did you check your config.local.php in the CS-Cart root dir? That file stores your MySQL database configuration.
I ran into the same issue here. I first tried adding my own username with no luck. Next I tried root#localhost after reading here on SF. Then finally, I tried with username as just: root and it worked. Install was not very intuitive. Anyways, I hope this helps someone else.

XAMPP mysql access without password

When I access mysql database on my localhost XAMPP installation I usually type
mysql -u user -p
But today I accidentally mistyped it like this:
mysql -u user-p
And for my surpries got connected without any password prompt. I tried that with many users registered in mysql and it seems they all get opened like this. Is that a bug or vulnerability for XAMPP or is it the normal behaviour for the integrated shell application inside the control panel? And if it is the second, how can I change it because anyone else using my computer can easily access any database and table on my server?
quote : RajaRassani
When you type mysql alone, I bet you'll be able to access the database still. I think the default installation has User=Any, Host=% Password=-- (you can check this in the Users tab of your PhpMyAdmin since you already have this with XAMPP)
Actually it really appears to be user related issue, XAMPP adds too much useless users it seems... Thank you for helping!

MySQL won't configure, incorrect root password?

So i've installed MySQL server 5.6, and it just will not let me in as it keeps telling me i've got the root password wrong on the installer.
I may or may not have used another MySQL server before, but have long since deleted it and set a new root password upon installing this new server.
Since it wasn't letting me in, i decided to see if there was another way to find out my password (which there isn't) or change it (which there is) but this hasn't worked either.
This is the document i was using.
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
I have changed my password multiple times now, it's accepted it according to the command prompt, and yet it still won't let me use SQL server...
Oh and i am on the administrator's account. How do i find out, or fix the root password permanently?
Okay i've finally figured out how to solve this (and in turn get it to install fully!).
What i did was delete everything from my system relating to MySQL, uninstall it and then re-download the installer. When installing i created a new file location and made MySQL install under C:\MySQL (a new folder i made), rather than let it install into C:\Program Files... and this seemed to make it install immediately, and meant that it couldn't find (if they were still there) any previously made root passwords.
The key to what it says in that link is to run it as administrator in the Windows sense. Otherwise it all appears to work but it reverts itself when you exit.
I just had this same issue. If you go into the installer and remove MYSQL Server and re-install, it will allow you to set the root password again and continue with your configurations.

Manually placing MySQL database files in the data folder - WAMP - XAMPP

I recently switched from using XAMPP to WAMP on my Windows 7 machine so I can do fast switching of PHP versions.
I completely uninstalled XAMPP, but first I backed up my htdocs, apache and mysql directories just in case.
After I installed WAMP and had everything up and running, I figured I could just drop some of my databases from my old XAMPP install into the "data" directory of the mysql directory in WAMP.
So that worked and the database shows up in phpMyadmin, but there are no tables. Is this a permissions thing? Like maybe I don't have the same user in the new install of mysql? Or am I missing something?
Am I allowed to just copy MySQL databases from one data folder to another or does it not work that way?
Both instances are using MySQL 5.5 (at least that's what both README files say in both MySQL directories).
THANKS
When using phpMyAdmin out of the box so to speak in WAMP, MYSQL is installed as per its default installation with the root userid setup to have NO PASSWORD.
Some people seem to think they should make one up when they see the login screen, is that what you are doing?
When you do this phpmyadmin allows you to APPEAR to login but then as you do not have root's privilages you see almost nothing on its other screens and are allowed to do nothing.
Use
username = root
password = (leave this blank)
Then set a password, there is a link on the next page it presents. AND DONT FORGET IT!!!!
This generally isn't a good idea. RiggsFolly was asking about your table type because some table types are more forgiving than others. Other possible trouble spots include file system permission problems or MySQL permission problems (as RiggsFolly asked).
I'd suggest to do an export (as an SQL file) and import that for a complete solution.