ОШИБКА 1044 (42000): доступ запрещен для пользователя - PullRequest
0 голосов
/ 24 июня 2011

Я не могу понять, как войти в свою базу данных, я получаю ошибки и не могу выполнить какие-либо запросы к базе данных, вот пример моей ошибки.

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> 

1 Ответ

0 голосов
/ 24 июня 2011

А как насчет входа в систему как root:

/usr/local/mysql/bin/mysql -u root
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...