常用命令:
修改root用戶密碼
update mysql.user set authentication_string=password('1234qwer') where user='root' ;
授權root用戶 所有主機登錄:
grant all privileges on *.* to 'root'@'%' identified by 'redhat';
mysqladmin-u root -p shutdown 關閉mysql
mysqld --skip-grant-tables 跳過授權表
安裝步驟
1、解壓win下的包到某個目錄
2、生成數據文件data
3、安裝並且啟動mysql