How to set root password to null
问题 How can I change the password for root user of MySQL to null -- meaning no password or '' -- from the MySQL command line client? 回答1: You can recover MySQL database server password with following five easy steps. Step # 1 : Stop the MySQL server process. Step # 2 : Start the MySQL (mysqld) server/daemon process with the --skip-grant-tables option so that it will not prompt for password. Step # 3 : Connect to mysql server as the root user. Step # 4 : Setup new mysql root account password i.e.