Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Mysql root passwd
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:'''FORGET MYSQL ROOT PASSWORD''' ]] 1.Stop the mysql server. /etc/init.d/mysqld stop 2.Start the mysql daemon with –skip-grant-tables option. -- mysqld_safe --skip-grant-tables& 3.Login to the server as root user. [root@alpha ~]# mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. our MySQL connection id is 1 Server version: 5.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> 4.Reset the mysql root password using the following commands. -- mysql> use mysql; mysql> update user set password=PASSWORD("New root pass") where User='root'; mysql> flush privileges; mysql> quit -- « Dispersed Storage Adding multiple virtual network interfaces in Ubuntu » Reset mysql root password Sometimes in some situations we forget some important things in their life LOL.So today I’m gonna share how to reset the reset the mysql root password.The steps are here. 1.Stop the mysql server. /etc/init.d/mysqld stop 2.Start the mysql daemon with –skip-grant-tables option. mysqld_safe --skip-grant-tables& 3.Login to the server as root user. [root@alpha ~]# mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. our MySQL connection id is 1 Server version: 5.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> 4.Reset the mysql root password using the following commands. mysql> use mysql; mysql> update user set password=PASSWORD("New root pass") where User='root'; mysql> flush privileges; mysql> quit 5.Stop the mysql daemon and start it again. /etc/init.d/mysqld stop /etc/init.d/mysqld start --[[User:Subhash|Subhash]] 12:52, 29 September 2012 (IST)
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)