Hi everyone, I acquired a site (wordpress based) and the database file has the content of the old users mysql database credentials (database name, database user id, passwod). I'm changing domains and need the files and db onto my new domain. I'm using phpmyadmin. I created a new mysql database with my own unique db name, uid and password. I want to import the contents and tables of the old database into the my empty database. I remember doing this in the past and it would not work because the contents of the .sql file has the old user information. Should I do a find/replace on the database name, uid and password in the sql file before attempting to upload/import? I know there's other steps involved with getting this to successfully work...I believe a critical line in the file has to be commented out but I can't remember which one it is. Any help would be appreciated. Thanks
it should work if you open the old database and and cahnge the URL. You could alos export and them import the XML.
I have recently created this , as i have took backup of my DB before reinstalling wordpress site. When you take a backup of DB , you create a .sql file which start from CREATE DB ... , so if you have already created a Database name in your backend and if you try to import the this file it will fail as you have already created one in the backend and the exported file as a statement CREATE DB in its first line. So my suggestions are remove the very first line CREATE DB.. and keep the other stuffs like CREATE TABLE..(POSTS TABLE,USER TABLES,COMMENTS TABLE) and try to import . Just give a try I have tried to explain in short ,Thanks
u can use import and export command to load the contents into yr new database. or u can also use the sql loader.
First you have to make a back on the first site and than download all data, and then upload the same on another site