ubuntu系统停mysql给root加上密码 Home » IDC云服务 » ubuntu系统停mysql给root加上密码 ubuntu系统下mysql给root加上密码 MySQL安装之后,root的密码是空的。为了提高安全性有必要给root加上密码。 mysql –u root –p password: mysql>SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘passwd’);