首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误1044 (42000):拒绝用户访问

错误1044 (42000):拒绝用户访问
EN

Stack Overflow用户
提问于 2011-06-24 08:51:10
回答 1查看 4.2K关注 0票数 0

我不知道如何登录到我的数据库,我一直收到错误,并且不能在数据库上执行任何查询,这是我的错误的一个例子。

代码语言:javascript
复制
HW-001b63b70b4c:~ imac$ /usr/local/mysql/bin/mysql;

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.5.13 MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| test               |
+--------------------+
2 rows in set (0.00 sec)

mysql> create database dev;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'dev'
mysql> 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-06-24 08:53:55

如果以root用户身份登录:

代码语言:javascript
复制
/usr/local/mysql/bin/mysql -u root
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6462220

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档