Webmaster Forum

Go Back   Webmaster Forum > Web Development > Web Hosting Forum > Dedicated Servers
Register Rules/FAQ Community Today's Posts Search

Dedicated Servers Dedicated server help.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 01-08-2004, 08:18 AM
QT_'s Avatar
QT_ QT_ is offline
v7n Mentor
Latest Blog:
None

 
Join Date: 10-13-03
Location: San Antonio, Tx
Posts: 327
iTrader: 0 / 0%
[Linux] Reset MySQL Password

*** It is very important that you restart MySQL (Step #5). If you do not, anyone can connect to MySQL and do anything they want ***

1. Login to your server and "su -" to root (do not forget the - after su).

2. Stop MySQL:

# /etc/init.d/mysql(d) stop

3. Start MySQL without authentication:

# /usr/bin/safe_mysqld --skip-grant-tables &

4. Connect to MySQL and update password:
[code:1:e3c8075c1d]
# mysql -u root
mysql> use mysql
mysql> update user set Password=password('newpassword') where User='root';
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 | Changed: 2 | Warnings: 0
mysql> quit
[/code:1:e3c8075c1d]
5. Restart MySQL:

# /etc/init.d/mysql(d) restart

*** Again, it is very important that you restart MySQL. If you do not, anyone can connect to MySQL and do anything they want ***
__________________
Just a jeans & flip-flop's kind of girl.
 
Reply With Quote

Advertisement

Advertisement

Go Back   Webmaster Forum > Web Development > Web Hosting Forum > Dedicated Servers

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Linux] Migrate a mysql database from one server to another QT_ Dedicated Servers 0 01-08-2004 08:16 AM
[Linux] Changing MySQL Admin/User Passwords QT_ Dedicated Servers 0 01-08-2004 08:13 AM
[Linux]Password protect a web site directory using .htaccess QT_ Dedicated Servers 0 01-08-2004 08:07 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:37 PM.
Powered by vBulletin
Copyright © 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2014 Escalate Media




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.