0

My local server has just blown up and gone bust. It’s refusing to boot and just hangs with a black screen. But I can access the data when making the HDD external

I have installed my new HDD into my server and installed everything i need now i need to know how to copy MySQL data from from one crashed system to the new one?

In using Ubuntu and copied the files from:

/var/lib/mysql/TableName

To the new location but I’m getting a error from phpMyAdmin saying cannot find file "products.frm" (errno: 13) but when I look in:

/var/lib/mysql/TableName

It’s there and I can see it?

What am I missing? I have no other backup.

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
nats0128
  • 509
  • 5
  • 18
  • No answering this, but will say this: Your problem is not phpMyAdmin. Your problem is MySQL. phpMyadmin is simply a web-based interface for phpMyAdmin. And copying database files like that can be iffy. Much better to rely on `mysqldump` exports. Always safer. And after this incident I recommend you use `mysqldump`—on a script perhaps—to backup a database. – Giacomo1968 Jun 25 '14 at 22:56

2 Answers2

2

Are you talking about copying phpmyadmin or your mysql data?

If it's phpmyadmin, I'd just reinstall it.

If it's your mysql data, it's going to take a bit more work. Start here: Restoring MySQL database from physical files.

Community
  • 1
  • 1
Kryten
  • 15,230
  • 6
  • 45
  • 68
0

Run the command:

SHOW VARIABLES LIKE 'datadir';

This will show you the right location of the database folders and the containing frm files.

bitWorking
  • 12,485
  • 1
  • 32
  • 38