How to Set Up Root Password for Your MySQL ServerJanuary 17th, 2009 If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To set up a root password for the first time, use the mysqladmin command at the shell prompt as follows:
$ mysqladmin -u root password newpass
If you want to change (or update) a root password, then you need to use the following command:
$ mysqladmin -u root -p oldpassword newpass
I hope this will work for you perfectly.
How To Use Vanilla Forum On MySQL Database Without Password SetOctober 23rd, 2006 First of all I want to make it clear that having a MySQL database without a password set (on your root account) is a very very bad idea. However I wanted to set it up on my home machine which has XAMPP installed.
How To Change MySQL PasswordApril 20th, 2008 Let's look at all the ways to change MySQL password, for root and other users:
In MySQL the default password is empty. This is inherently unsafe and should be immediately changed.
Tip: How To Find MySQL VersionSeptember 1st, 2007 Try:
mysql -e status|grep 'Server version'
If that doesn't work then use:
mysql -u root -p -e status|grep 'Server version'
Provide root password when prompted. Default root password for MySQL is empty string, so just pressing enter when prompted for password will suffice by default.
How to Update or Change Password for a Single User in MySQL and Reload PrivilegesJanuary 17th, 2009 MySQL stores usernames and passwords in the user table inside the MySQL database. You can directly update a password using the following method to update or change passwords:
1) Login to the MySQL server, type the following command at the shell prompt:
$ mysql -u root -p
2) Use the mysql database (type commands at the mysql> prompt):
mysql> use mysql;
3) Change password for a user:
mysql> update user set password=PASSWORD("newpass") where User='YOUR-USER-NAME';
4) Reload privileges:
mysql> flush privileges;
mysql> quit
[P.S.
How to Change MySQL Password for Other UsersJanuary 17th, 2009 Do you get this error message when you try to change the root password?
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
Or may be you need to change the MySQL password for other users. So what do you do then?
To change a normal user password you need to type:
$ mysqladmin -u user-name -p oldpassword newpass
How To Enable Root Account on Mac OSXApril 20th, 2008 1. Login to the Admin account (not the normal account)
2. Open up a command shell in the Terminal application by selecting - Macintosh HD -> Applications -> Utilities -> Terminal
At the command prompt type this command:
sudo passwd root
You will then get the following prompts.
How To Recover Openfire admin Password October 22nd, 2007 Openfire is a cross-platform java based free Instant Messaging server which implements the XAMPP (Jabber) protocol with extensions. It is very well suited as corporate instant messaging solution.
Monitoring MySQL Queries Using Bash ScriptNovember 18th, 2007 Monitoring MySQL queries is a favorite pastime of MySQL administrators especially for performance reasons. Here is a simple bash script to monitor long running MySQL queries in realtime using the ubiquitous 'show processlist'.
How do I Enable Remote Access To MySQL Database?April 27th, 2009 Suppose you want to change and enable the remote access to MySQL DB on your linux server (Debian). By default, you don't get such privileges so you will have to work your way through this.
How to Hack Root Password in LinuxNovember 3rd, 2008 Today I am going to tell you the trick to hack your root passoword in Linux if you are too forgetful to remember it or you have legal permission to enter a server run by a different admin and by any chance he forgot to give you the root password. Those Who Have GRUB bootloader
The first step is to reboot server.
How To Migrate Mantis Defect Tracking System From Windows To Linux / Fedora Core 6May 12th, 2007 Mantis is popular php based defect tracking application which works on top of RDBMS like MySQL and PostgreSQL. Recently I ported our Windows based Mantis installation to Linux.
How to Disable Direct Root Login to Secure Your NetworkJanuary 2nd, 2009 Root login is perhaps one of the very few vulnerabilities that Linux operating system faces. A person can hack into your system as a root user easily and can play with security settings.
How To Use AWK To Simplify Scripting: Multi-Database Backup ExampleApril 20th, 2008 AWK is an extremely versatile and powerful language for processing files and text data. Often you can use awk to perform complex tasks on Unix / Linux / Mac OS command line which would otherwise take a full-fledged programming effort.
In Postgresql How to solve: psql: FATAL: database "root" does not exist ErrorOctober 16th, 2008 Postgresql command line interface psql presents a stumbling block to any mysql users. Try running psql on command line and you will get a nice and unfriendly error message: FATAL: database "root" does not exist
Most MySQL users face this problem initially with Postgresql because Postgresql works differently.
January 17th, 2009 at 4:44 am
[...] How to Recover MySQL Root Password [...]
January 19th, 2009 at 7:01 am
Thanks
September 8th, 2009 at 7:17 pm
November 11th, 2009 at 5:21 pm
Hello. I been seen many tutorials on how to recover your MySQL password but no one wrote where i was gonna write the “Step by Step” codes. Like the first step where i gonna write:
# /etc/init.d/mysql stop
Yes but where???