---
title: "禁用一个用户"
author: "jedy"
date: "2008-04-18T01:11:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2008-04-18T01:11:00Z"
id: 304649
url: "https://jedy.iteye.com/blog/304649"
---

临时的禁用一个用户在MySQL中是不支持，不过还是有一些办法可以实现。  
MySQL是支持SSL连接的，可以设置希望禁用用户的SSL连接使得该用户无法再连上。  
比如把ssl\_type从空字符串设为X509。