close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Can't reset mysql root password

Thread began 3/13/2010 2:21 am by paul386291 | Last modified 3/24/2010 12:17 pm by neilo | 5499 views | 3 replies |


Can't reset mysql root password

Hi there

I'm going crazy trying to reset the mysql root password. I've read plenty of articles on how to do it, but any suggested commands that I enter in terminal don't work.

I can't even access mysql in terminal.

Below are just some of the messages:

Last login: Mon Mar 8 17:34:00 on console
Welcome to Darwin!
paul-dodsons-Computer:~ pauldodson$ /usr/local/mysql/bin/mysql-root
-bash: /usr/local/mysql/bin/mysql-root: No such file or directory
paul-dodsons-Computer:~ pauldodson$ man sharing
No manual entry for sharing
paul-dodsons-Computer:~ pauldodson$ kill `cat /mysql-data-directory/`
cat: /mysql-data-directory/ No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
paul-dodsons-Computer:~ pauldodson$ mysqld_safe --init-file=/home/me/mysql-init &
[1] 2422
paul-dodsons-Computer:~ pauldodson$ -bash: mysqld_safe: command not found
-bash: mysql: command not found
[1]+ Exit 127 mysqld_safe --init-file=/home/me/mysql-init
paul-dodsons-Computer:~ pauldodson$
paul-dodsons-Computer:~ pauldodson$ mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass')
-bash: syntax error near unexpected token `('
paul-dodsons-Computer:~ pauldodson$ -> WHERE User='root';
-bash: -: command not found
paul-dodsons-Computer:~ pauldodson$ mysql> FLUSH PRIVILEGES;
-bash: mysql: command not found
paul-dodsons-Computer:~ pauldodson$

Can anyone PLEASE help with this before I go insane.

Thank you.


Sign in to reply to this post


Hi Paul,

'Trying to reset' your mysql root password. Does this mean that you don't have your original password?

Did you set an original password, or was MySql set up without entering a password?

What testing server are you using, i.e. IIS, Wamp, Xampp?

Sign in to reply to this post


I am having same problem. I am on WAMP.

Sign in to reply to this post



Same question to you, - Did you set a password during the MySql part of the WAMP install? In other words, did you enter one but forget it, or do you have a MySql installation with no password set yet? By default, the WAMP MySql setup doesn't ask you to specify a password!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...