Prime 357

We'll learn something

Site Menu

  • Home
  • Recent Posts
  • Forum
    • Programming Languages
      • C++
    • Website Design & Content Management
      • Wordpress >> Drupal
  • Blogs
  • Topics
    • C++
    • Changing hosts - Dummies Guide
    • Wordpress >> Drupal
  • Download Centre
  • Contact us
Home Forums Website Design & Content Management Systems Wordpress to Drupal


Image - OpenID

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password

Navigation

  • Recent posts

Topics

  • C++ (The Book)
  • Changing Hosts - a Dummies Guide
  • Wordpress to Drupal

Recent comments

  • Got it solved This page here
    4 hours 8 min ago
  • Links working
    1 day 3 hours ago
  • Thanks... I may be able to
    1 day 9 hours ago
  • 3306 by default
    1 day 19 hours ago
  • Is this the right place to
    1 day 20 hours ago
  • Figured
    3 weeks 6 days ago
  • I'm guessing at this stage
    3 weeks 6 days ago
  • WordPress MU?
    4 weeks 4 hours ago
  • Thanks
    10 weeks 1 day ago
  • I'm running the conversion
    11 weeks 5 days ago

New forum topics

  • What should the port number be
  • WordPress MU?
  • funny little bug in mac version
  • Error: Unable to Insert into Node_revisions table when converting from wordpress 2.6.0 to drupal 6.4
  • index.php?
more

Who's online

There are currently 0 users and 2 guests online.

Who's new

  • oODeathStormOo
  • leruffiant
  • Emtee
  • mnogodet
  • ZioMimmo

Source connection settings are correct but it appears it's the wrong database

4 replies
Thu, 31 Jul, 2008 - 11:04
jmilarsky
Joined: 31 Jul 2008
User offline. Last seen 17 weeks 4 days ago.

Hello:

Trying to convert from Wordpress to Drupal. Both databases are in MySQL on the same server. When using the utility from a remote Windows XP machine, and testing the connections with "Connect to Databases", I can connect to the Drupal DB just fine.

My attempt to connect to the Wordpress DB resulted in the error message in my subject line. Can you tell me a bit what conditions the utility checks to test whether it is the "wrong database"? Could the fact that they are on the same server be my problem? My Wordpress tables are all named differently, with a topic_subject naming convention.

Thanks in advance.

Top
  • Login or register to post comments
  • 311 reads
Thu, 31 Jul, 2008 - 11:09
#1
jmilarsky
Joined: 31 Jul 2008
User offline. Last seen 17 weeks 4 days ago.
Nevermind

I feel silly for missing this, but all values in the "Table prefix" textbox of the converter GUI must end in an underscore character ("_").

Hopefully my folly will assist others.

Cheers.

Top
  • Login or register to post comments
Thu, 31 Jul, 2008 - 22:56
#2
Steve
Joined: 27 Mar 2008
User offline. Last seen 1 hour 2 min ago.
Actually, that's not quite

Actually, that's not quite true. When installing Wordpress, that's when you decide if a table prefix is appropriate or not. The default is "wp_" though you can name the prefix anything you want. If you wanted to name the prefix "w", without a trailing underscore, you could.

I believe the prefixing of table names dates back to the days when user's were restricted to only one database and so to group the various application tables a prefixing system was adopted.

These days, it's far simpler to create a database per application.

Steve
My running website

Top
  • Login or register to post comments
Fri, 1 Aug, 2008 - 01:10
#3
jmilarsky
Joined: 31 Jul 2008
User offline. Last seen 17 weeks 4 days ago.
Perhaps

I don't know enough about Wordpress to really address the nuts and bolts here, but I can tell you more about my own experience. We had a Wordpress site that we basically inherited and need to migrate to Drupal. Within the Wordpress site, there are DB tables with different prefixes. Some are called, for example, "aa_tablename". Others are called "bb_tablename". The prefixes in our case may or may not have been specified at the time Wordpress was installed. But for general purposes they seem to have been used to delineate one blog from another.

In any case, when using this tool, we need to migrate one set of tables at a time per prefix. And, indeed, in the Converter GUI, the underscore character must be included. So in my example, "aa" would not work as a table prefix; "aa_" would.

Top
  • Login or register to post comments
Fri, 1 Aug, 2008 - 01:11
#4
jmilarsky
Joined: 31 Jul 2008
User offline. Last seen 17 weeks 4 days ago.
More clarification

And, to be perfectly clear, I'm not addressing how Wordpress is installed, only how we used the Wordpress to Drupal utility. When using the utility, it seems necessary to add that underscore when prompted for the tablename.

Top
  • Login or register to post comments

 Subscribe in a reader

free hit counter


RoopleTheme