---
title: "mysql安装"
author: "chtx87_98"
date: "2012-01-04T21:49:45Z"
tags: ["MySQL", "utuntu", "安装"]
categories: ["操作系统"]
slug: "mysql"
draft: false
lastmod: "2012-01-04T21:49:45Z"
id: 1335525
url: "https://sky-chi.iteye.com/blog/1335525"
---

**1.安装MySQL**

$ sudo apt-get install mysql-server

**2.登录**

$ mysql -uroot -proot     (-u加用户名 -p密码)