Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/09/2005, 14:11
ricardomz
 
Fecha de Ingreso: junio-2005
Ubicación: Edo. Mex
Mensajes: 725
Antigüedad: 18 años, 11 meses
Puntos: 5
Exclamación ERROR 1146 Table 'mysql.root' doesn't exist

Que tal¡¡
En mi pc instale hace ya tiempo el appserv con apache, mysql y php, para hacer las pruebas pertinentes de mis sitios.
El dia de hoy deicidi ponerle password a mysql, ya que cualquier persona entraba como root a travez del command, pero al entrar en phpmyadmin, recibí el siguiente error:

#1045 - Access denied for user: 'root@localhost' (Using password: NO)

Empeze a buscar información en la red y encontre el siguiente artículo:

http://www.mysql-hispano.org/page.php?id=34&pag=4

Como pueden ver para la comprobación del password de root la tabla debe indicar lo siguiente:

mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

mysql> SELECT host,user,password FROM user;
+-----------+------+------------------+
| host | user | password |
+-----------+------+------------------+
| localhost | root | 565491d704013245 |
+-----------+------+------------------+
1 row in set (0.00 sec)

mysql>

Pero cuando yo realizo la consulta me da lo siguiente:

ERROR 1146: Table 'mysql.root' doesn't exist
mysql> select host,user,password from user;
+-----------+------+------------------+
| host | user | password |
+-----------+------+------------------+
| localhost | root | 67457e226a1a15bd |
| localhost | | |
+-----------+------+------------------+
2 rows in set (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.25 sec)


E indica que existe el siguiente error:
ERROR 1146: Table 'mysql.root' doesn't exist


Alguien sabe como solucionarlo??

Agradezco de antemano su ayuda¡¡