---
title: "linux mint 下安装 mysql"
author: "tycomputer"
date: "2012-05-11T16:20:31Z"
tags: []
categories: ["数据库"]
slug: "linux-mint-mysql"
draft: false
lastmod: "2012-05-25T11:17:18Z"
id: 1523782
url: "https://tycomputer.iteye.com/blog/1523782"
---

在linux mint 12 下安装 mysql方法：
 sudo apt-get install mysql-server mysql-client

安装过程中设设置一下root的密码即可。

安装完成后，即可用navicat 进行管理

navicat安装见：http://tycomputer.iteye.com/admin/blogs/1499499


如果通过软件管理器安装的，在安装过程中不会有设置root密码的界面，安装完成后执行：

```java
mysqladmin -u root -p password
```

提示输入密码时，直接回车，然后输两次新密码即可。