Am using wamp server,where in my project I need to change the userid and password of mysql.I want to change it to username:-"root" password:-"root123".How it is possible?
5 Answers
Enter to WAMP mysql console and write:
CREATE USER 'root'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
to remove old user
DROP USER 'olduser'@'localhost';
If you are using WAMP on grahical interface, right click on the system tray WAMP and check MySQL section.