Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Kwak on
Hello everyone,
I like to install Drupal 4.7.1 on an existing MySQL database (currently used for a forum software).
The CPanel provides PhpMyAdmin.
The problem I had in the past is, I don't know how to install Drupal because the tables overlaps.
I need to know how to add prefix but don't know how.
Any help will be grateful.
Comments
scripts folder
There is a script iincluded in the /scripts folder that will prefix all the table names for you. Just be sure that you do the same for any contributed modules. The only place it will have to be done is in the drupal schema in the /databases folder and then for any contrib modules in the .install files. Then you have to tell drupal about your prefix in settings.php. On second thought, this may even happen automatically for contrib modules once you set settings.php.
Yes, I just checked. for example in og.install you have:
db_query("CREATE TABLE {og} ....
And the curly braces mean that drupal will automatically add the prefix defined in settings.php.
So, to summarize, all you have to do is use the prefix.sh script in the scripts folder to prefix the table names in the schema file (e.g. database.4.1.mysql), and then set your prefix in settings.php.
---
Work: BioRAFT
I appreciate your help. But
I appreciate your help.
But I can't understand your instruction. :( I need laymen's term.
Maybe it is not a good idea for me to do the installation.