ps -ef | grep mysqld
killall mysqld
cd /usr/local/mysql/bin/
./safe_mysqld --skip-grant-table &
ps -ef | grep mysqld
./mysql -u root mysql
update user set password=password('h5530186') where user='root';
flush privileges;
exit
killall mysqld
./safe_mysqld &
./mysql -u root -p mysql
root password변경
mysqladmin -p현재패스워드 password변경패스워드