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:
- create new table same name .frm file (so e.g. yada.frm become yada table)
- stop mysql daemon
- copy on old old .frm file location new .frm stored
- restart mysql deamon
- you should able table defintion
show create table yada
Comments
Post a Comment