Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transfer of database

Status
Not open for further replies.

tvrtko

Programmer
Nov 26, 2003
53
HR
What should I do to transfer my database from one instance of MySQL Server to another(same version).

Sorry on newbie question.
 
the easiest way in your case (because both servers are the same versions) is to copy your database directory and paste it to the other server, and then restart the server.

the right way to do it, is 'mysqldump --help'


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
I did that, and now I can connect to the database, but after select statement on table I get message:

ERROR 1016: Can't open file: 'myTable.ibd' (errno: 1)

 
what OS are your servers?
have you got the right permissions?
did you also copy the my.cnf from one server to another?



______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
It's MySQL Server 4.1 on Windows XP.
I think permissions are all right. I can connect to database.

I didn't copy the my.cnf from one server to another.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top