Ver Mensaje Individual
  #6  
Antiguo 29-09-2010
Avatar de RebeccaGL
RebeccaGL RebeccaGL is offline
Miembro
 
Registrado: ene 2008
Posts: 199
Reputación: 17
RebeccaGL Va por buen camino
Buenas,

Esto es lo que estoy haciendo en "MySQL".

Código Delphi [-]
 
      // Create_DATABASE
      ZQuery_DATA.SQL.Clear;
      ZQuery_DATA.SQL.Add('CREATE DATABASE IF NOT EXISTS ecam_db');
      ZQuery_DATA.ExecSQL;

      // CREATE >> Root locahost
      ZQuery_DATA.SQL.Clear;
      ZQuery_DATA.SQL.Add('GRANT ALL PRIVILEGES ON *.* TO "root"@"localhost" IDENTIFIED BY "" WITH GRANT OPTION;');
      ZQuery_DATA.ExecSQL;

      // CREATE >> Root All PC's
      ZQuery_DATA.SQL.Clear;
      ZQuery_DATA.SQL.Add('GRANT ALL PRIVILEGES ON *.* TO "root"@"%" IDENTIFIED BY "" WITH GRANT OPTION;');
      ZQuery_DATA.ExecSQL;

      // CREATE >> ecam_user locahost
      ZQuery_DATA.SQL.Clear;
      ZQuery_DATA.SQL.Add('GRANT ALL PRIVILEGES ON *.* TO "ecam_user"@"localhost" IDENTIFIED BY "delphi" WITH GRANT OPTION;');
      ZQuery_DATA.ExecSQL;

      // CREATE >> ecam_user All PC's
      ZQuery_DATA.SQL.Clear;
      ZQuery_DATA.SQL.Add('GRANT ALL PRIVILEGES ON *.* TO "ecam_user"@"%" IDENTIFIED BY "delphi" WITH GRANT OPTION;');
      ZQuery_DATA.ExecSQL;

Lo que hago es instalar mi programa en otra pc, luego mi programa al ejecutarse en dicha PC, restaura la base de datos previamente creada hacia el servidor MySQL y tambien creo los usuarios, todo desde DELPHI mi pregunta es porque me sale ese error.

Ejemplo

1.- programa.exe

2.- backup.sql

Esos dos archivos son los que proporciono el programa y el backup.sql donde se encuentran la base de datos con las tablas.


"cant find any matching row in the user table"

Última edición por RebeccaGL fecha: 29-09-2010 a las 19:03:52.
Responder Con Cita