Current location: Hot Scripts Forums » Other Discussions » Database » Change MySQl Password Using .bat


Change MySQl Password Using .bat

Reply
  #1 (permalink)  
Old 02-26-09, 04:54 AM
cancer10 cancer10 is offline
Wannabe Coder
 
Join Date: Oct 2006
Location: India
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Question Change MySQl Password Using .bat

Hi

First of all I am sorry if I am posting in a wrong section.

Following are the steps to change MySQL root password using command prompt

HTML Code:
1) cd C:\mysql\bin\
2) mysql -u root -p mysql -h 127.0.0.1
3) (when prompting for password) we enter password
4) set password = password('new password')
I was wondering if these steps can be done using a .bat file?

If yes how?

I have tried creating a .bat file with the above steps but it stucks at line when it prompts for the password. can I automate it as well?


Thanx for your help
Reply With Quote
Reply

Bookmarks


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

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php sha256 password to long,cant stored the full data to my mysql kjwooi Database 1 08-10-08 08:15 AM
MySql Labyrinth moron Database 4 02-22-08 02:46 AM
set privileges and password in MySQL nassau PHP 3 05-07-06 02:15 AM
password ( ) + MYSQL rsuresh PHP 2 06-15-04 05:42 AM
How to change Mysql username webx2000i PHP 4 02-10-04 08:48 PM


All times are GMT -5. The time now is 05:04 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.