php - retrieve MySQL table schema from .frm files to create SQL script -


i received mysql database vendor (whose contract closed) , followed instructions set php , mysql on localhost, using phpmyadmin interface see few of tables visible in db directory.

i noticed tables able see (and query) in phpmyadmin had 3 files types (.frm .myd .myi) 'missing' ones had 1 type (.frm).

how use .frm file (which schema) create sql scripts allow me re-generate tables in full?

you can´t restore data .frm files, no problem table defintion out of files. following:

  1. create new table same name .frm file (so e.g. yada.frm become yada table)
  2. stop mysql daemon
  3. copy on old old .frm file location new .frm stored
  4. restart mysql deamon
  5. you should able table defintion show create table yada

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -