ServerTune Logo Dedicated Servers Colocation VPS Server Management ServerTune.com
 
ServerTune HomeAbout usContact usHelp DeskKnowledgebaseSpecialLIVE Chat ServerTune
DirectAdmin VPS Server Management

Value, Power, and Performance :: Dedicated Servers starting $89 /month

Dedicated Server Hosting

Click here to view photos from the conferences we attended.   *** Follow ServerTune on: ServerTune is on Facebook ServerTune is on Twitter
 
Browse by category   Search
 


HowTo :: change MySQL root password
Printer Friendly
email to a friend
Email to friend
Add comment Add comment
Views: 1438
Votes: 0
Comments: 0
Posted: 06 Dec, 2007
by: Customer Service :: S.
* * * * *
Updated: 06 Dec, 2007
by: Customer Service :: S.

Run the following commands at the prompt

  • /etc/init.d/mysql stop
  • mysqld_safe --skip-grant-tables &

Connect to MySQL server

  • mysql -u root
    • mysql> use mysql;
    • mysql> update user set password=PASSWORD("YOUR_NEW_PASSWORD") where User='root';
    • mysql> flush privileges;
    • mysql> quit
  • /etc/init.d/mysql stop
  • /etc/init.d/mysql start
  • mysql -u root -p
Other articles in this Category
document I see hundreds of mysql-bin.00xxxxxxx files in /var/lib/mysql directory. What are these files?
document Starting MySQLCouldn't find MySQL manager or server
document How can I check if query cache is working on my MySQL server?
document HowTo :: commands, statements, and clauses
document Got a packet bigger than 'max_allowed_packet' bytes
document MySQL :: HowTo fix Access-Denied Errors
document Warning: MySQL server has gone away
document Error :: Can't connect to [local] MySQL server
document Who is exhausting MySQL resources on my server?



RSS

Control Panel Licensing
cPanel Plesk Miva Merchant