mysqladmin -uroot password "123" 設置初始密碼 因爲原密碼爲空,所以-p能夠不用 mysqladmin -uroot -p"123" password "456" 修改mysql密碼,由於已經有密碼了,因此必須輸入原密碼才能設置新密碼