Hi Killersite Community,
I was wondering if someone could help,,, i've searched online for hours tried every possible solution
but still with no luck at changing the root USER password of my PHP myAdmin MySql from:
$server = 'localhost';
$user = 'root';
$pass = ''; /////// If i use root as password it dosen't work...... if i use $pass = ''; it works
$db = 'fp_cms';
I tryed changing the root password using the phpmyadmin user interface but keep getting errors.......
EVERY ONE SAID ON THE FORUMS THEY CAN"T SEEM TO FIX THIS PROBLEM AND RECOMMEND USING XAMPP because it's really easy to change the ROOT
USER PASSWORD with out getting ERRORS
.................................
I'm sure i'm not the first person to to encounter this problem.....
BELOW IS THE instructions i used to change MY ROOT password in WAMP..... didn't work
----------------------------------------------------------------------------------------
C.5.4.1.1. Resetting the Root Password: Windows Systems
On Windows, use the following procedure to reset the password for all MySQL root accounts:
1. Log on to your system as Administrator.
2. Stop the MySQL server if it is running. For a server that is running as a Windows service, go to the Services manager:
From the Start menu, select Control Panel, then Administrative Tools, then Services. Find the MySQL service in the list and stop it.
If your 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 containing the following statements. Replace the password with the password that you want to use.
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; /// change 'MyNewPass' to the new password you want
FLUSH PRIVILEGES;
Write the UPDATE and FLUSH statements each on a single line. The UPDATE statement resets the password for all root accounts,
and the FLUSH statement tells the server to reload the grant tables into memory so that it notices the password change.
4. Save the file. For this example, the file will be named C:\mysql-init.txt.
5. Open a console window to get to the command prompt: From the Start menu, select Run, then enter cmd as the command to be run.
Start the MySQL server with the special --init-file option (notice that the backslash in the option value is doubled):
6. C:\> C:\mysql\bin\mysqld-nt --init-file=C:\\mysql-init.txt
7. FOR MY MACHINE USING WAMP Type this line
--------------------------------------------------------------------------------
CORRECT COMMAND PROMPT TO CHANGE ROOT PASSWORD
c:\wamp\bin\mysql\mysql5.5.24\bin\mysqld.exe wampmysqld --init-file=C:\\mysql-init.txt