oops....
Posted by: Kwame (---.range31-51.btcentralplus.com)
Date: November 07, 2015 09:44PM

the default user name for mysql database is root and the password was nothing so i logged in and i created a new account named "Kwame" and i forget to make it superadmin so i deleated the default account and now i cant do anything :'(

Options: ReplyQuote
Re: oops....
Posted by: RiggsFolly (---.as43234.net)
Date: November 07, 2015 10:24PM

Hi Kwame

That was clumsy! I suppose you would like someone to tell you how to get out of this hole you have dug for yourself. Right?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: oops....
Posted by: RiggsFolly (---.as43234.net)
Date: November 07, 2015 10:25PM

1. Stop the mysql service
wampmanager -> MySQL -> Service -> Stop Service

2. Edit the my.ini file
wampmanager -> MySQL -> my.ini

3. Find the [wampmysqld] section in the ini file
Add this line directly after the section [wampmysqld]
skip-grant-tables

4. Restart the mysql service.
wampmanager -> MySQL -> Service -> Start/Resume Service

5. Open the MySQL console
wampmanager -> MySQL -> MySQL Console

6. Now we are going to reset the password for the root user, of course this could be used to reset any users password.

enter the following 2 commands at the mysql> command prompt, each with a semi colon at the end of a line, and press ENTER after each line to issue the command to mysql.
   UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE user='root';
   FLUSH PRIVILEGES;

Note that the update should report that it has updated more than one row, that because there are actually 3 user accounts with the userid of 'root' each with a different domain i.e. 127.0.0.1, localhost and ::1

7. Now enter 'quit' at the mysql command promt to exist mysql.

8. Stop the mysql service
wampmanager -> MySQL -> Service -> Stop Service

9. Edit the my.ini file
wampmanager -> MySQL -> my.ini

10. Find the [wampmysqld] section in the ini file
Remove the 'skip-grant-tables' parameter we added earlier.
DO NOT Leave this parameter in the ini file its a HUGH security hole.

11. Restart the mysql service.
wampmanager -> MySQL -> Service -> Start/Resume Service

You should now be able to login with phpmyadmin using the userid 'root' and the new password you have just set for that user.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: oops....
Posted by: Kwame (---.range109-152.btcentralplus.com)
Date: November 09, 2015 07:26PM

Thanks !

Options: ReplyQuote
Re: oops....
Posted by: Kwame (---.range86-175.btcentralplus.com)
Date: November 15, 2015 08:42PM

for step 5 the console is asking for a password what do i do

Options: ReplyQuote
Re: oops....
Posted by: Kwame (---.range86-175.btcentralplus.com)
Date: November 15, 2015 08:50PM

Nevermind thanks!

Options: ReplyQuote


Sorry, only registered users may post in this forum.