Home > Back-end >  Delphi import perform restore SQL to mysql problem at a time
Delphi import perform restore SQL to mysql problem at a time

Time:12-09

Import data
 ShellExecute (handle, nil, PChar (' CMD. Exe), PChar ('/c mysqld - u + dmmain. C_User + '- p + dmmain. C_Pass + "+ dmmain. C_DBName +' & lt; '+ edtSQLFilePath. Text), nil, sw_normal); 



Export data
 ShellExecute (handle, nil, PChar (' CMD. Exe), PChar ('/c mysqldump - u + dmmain. C_User + '- p + dmmain. C_Pass + "+ dmmain. C_DBName +' & gt; '+ edtSQLFilePath. Text), nil, sw_normal); 



Import the data above statements run no import data in the database,
Export data of the following statements to run the data in the database can be exported as SQL file,
Consult with the above statement is where is there a problem?
The mysqldump mysqld is added in the system environment variables,

CodePudding user response:

Mysqld mysql write a d
  • Related