---
title: "mysql 出错提示"
author: "mesum"
date: "2012-08-18T19:57:09Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2012-08-18T19:57:09Z"
id: 1636742
url: "https://mesum.iteye.com/blog/1636742"
---

1.ERROR 1044 (42000): Access denied for user 'tracy'@'localhost' to database 'innodbTest'

 

tracy这个用户，没有权限创建用户

 

使用root用户登录，运行如下命令

mysql &gt;create database innodb\_test;

mysql&gt;grant all on innodb\_test to tracy@localhost;

退出使用tracy用户登录，就可以使用innodb这张表了。

或者给tracy这个用户赋予所有数据库的操作权限：

grant all on \*.* to tracy@localhost;

这样在tracy用户下就可以操作创建数据库了。