---
title: "pear链接Mysql库问题"
author: "xcgh"
date: "2007-04-13T17:44:10Z"
tags: []
slug: "pear-mysql"
draft: false
lastmod: "2007-04-13T17:44:10Z"
id: 70701
url: "https://xcgh.iteye.com/blog/70701"
---

grant usage on 数据库.* to ['用户名'@'localhost'](mailto:'@'localhost') identified by '密码';  
flush privileges;

密码不可以含有$

设置Mysql新用户，并赋予相应权限，如user表中的Select\_priv权限

就可以了