Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/06/2014, 08:53
cydemmy
 
Fecha de Ingreso: junio-2014
Ubicación: bernal
Mensajes: 6
Antigüedad: 9 años, 11 meses
Puntos: 0
Access denied for user ''@'localhost'

Buenos dias, soy Emiliano y necesito ayuda para terminar de instalar mi base de datos. les describo un poco como es mi equipo:

Es una maquina virtual con linux CentOS como sistema operativo
[emaguero@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.32-358.el6.i686 #1 SMP Thu Feb 21 21:50:49 UTC 2013 i686 i686 i386 GNU/Linux
cuando intento ingresar como root me sale
[emaguero@localhost ~]$ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
aca he ingresado mi clave de root... pero no me deja

ahora si hago directamente mysql, si ingresa sin ninguna pass
[emaguero@localhost ~]$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, 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>

puedo ingresar, y si veo las bases que tiene instalado...
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.01 sec)

acá... tengo entendido que debería haber una base llamada "mysql" pero no esta.

ahora si intento crear una base, tampoco me deja.
mysql> CREATE DATABASE MiMoodle;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'MiMoodle'
mysql>

tampoco me deja hacer nada con las que estan
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)

mysql>
mysql>
mysql> describe test;
ERROR 1146 (42S02): Table 'test.test' doesn't exist

si alguien me puede echar un cable, se lo agradezco...

saludos