MySQL password problem - TechRepublic
Question
June 2, 2008 at 06:34 AM
jiminpa

MySQL password problem

by jiminpa . Updated 16 years, 7 months ago

Can you help me crack the root password? Ha! Kidding 😀

Seriously though, I am having an issue with logging into MySQL form the command line as root. The problem is my password follows this pattern !password! this is a shop standard password. The problem is when I run the following command.

#mysql -uroot -p!password!

Linux returns “-bash: !password!: event not found

Obviously the ! is being read as something other than a character in the password. If I just run the following.

#mysql

it doesn’t log me in as the root user it logs me in with a blank username. Is there any way I can pass the ! when I log in?

This discussion is locked

All Comments