Category: Programming & Design
Resolved Question
Transfering website/ mysql database.. are path fixed?i have a joomla website, and i'm trying to my whole website to another host. There are components to helps me do this, but i just want to understand how it works.
so i transfer the files, and database, then change the information in the configuration.php to match database name/user/password/server etc.
i know there are paths written in the database.
example: /herd03/30391/domains/sitename/html/comp... ... etc.
because i'm changing host, the path name will be different.
so my question is: will changing the pathway in the configuration.php file change all these path in the database too?
so i transfer the files, and database, then change the information in the configuration.php to match database name/user/password/server etc.
i know there are paths written in the database.
example: /herd03/30391/domains/sitename/html/comp... ... etc.
because i'm changing host, the path name will be different.
so my question is: will changing the pathway in the configuration.php file change all these path in the database too?
Best Answer - Chosen by Asker
- The configuration.php holds all the important information (paths, url, db user and pass) including the path.
So in theory by changing configuration.php everything is fine. You have to keep in mind that you need to change the directories permissions as well.
Now, regarding links in database it is unlikely that the full path is stored there. Take a look in the database in order to see if there are any paths there. Simply export it to sql (mysqldump) and search in the text.
In your shoes I would search and replace the mysql dump file if there where any in paths there.
Good luck anyway.
Other Answers:
- No, databases don't have paths. They just contain tables with information. Your configuration.php its the handler between your site and your site data.
i recommend doing this:
1. Backup all your web folder files.
2. Export your database or databases.
3. Create on your new hosting a new database.
4. Import your previous database to the new one.
5. Save your new database name and user with password.
6. Restore your web folder files to the new hosting.
7. Edit the conf.php and replace the database info with the new one.
8. Enjoy your new site.
Hope it helps...
