I have done an idiot mistake, i cut the database folder in /var/lib/mysql folder and paste into my external hard drive because my hard disk was almost full.
Now i copy the database folder back into the original mysql folder, i cannot access the database anymore, phpmyadmin says it is an empty database.
Is there any way to recover the old database? If it disappear permanently it will be a big pain for me
What is the engine for your tables? InnoDB or MyISAM? If it is MyISAM then yes they can be recovered if you still have all the files but if type is InnoDB then there might be some trouble
And after pasting the files back to original directory you have to restart mysql server too.