Home > Network and Server > Mysql Commands

Mysql Commands

Reset root password
1. Stop mysql server
/etc/init.d/mysql stop
2. Start mysql server with safe mode and skip grant tables
#mysqld_safe –skip-grant-table

3. Update the new password

mysql
mysql> use mysql;
mysql> UPDATE user SET password=password('passwordhere') WHERE user='root';

4. Stop mysqld_safe by pressing Ctrl+C
5. Start mysql server
/etc/init.d/mysql start

Comments:0

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Trackbacks:1

Listed below are links to weblogs that reference
Mysql Commands from Aji's Journal
trackback from DOUG June 30, 2010


Pillspot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Online Pharmacy. Buy pills online

Buy:Female Cialis.Advair.Aricept.Cozaar.Acomplia.Seroquel.Wellbutrin SR.Zocor.Benicar.Buspar.Ventolin.Zetia.Female Pink Viagra.Prozac.Lasix.SleepWell.Lipitor.Lipothin.Amoxicillin.Nymphomax….

TOP