This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Unable to select database error

I tried to update to Drupal 5. But now I get this error:

Unable to select database

We were able to connect to the MySQL database server (which means your username and password are okay) but not able to select the database.

The MySQL error was: Access denied for user 'myname'@'localhost' to database 'drupal'.

Currently, the database is drupal. The username is mybane and the database server is localhost.

* Are you sure you have the correct database name?
* Are you sure the database exists?
* Are you sure the username has permission to access the database?

Now, being a newbie, what I did was to backup the database folder from my 4.7 installation. Then I deleted everything in my Drupal folder on the server. Then I copied all the new files and folders from the new version into that folder. I edited the settings.php file in Sites/Default to have my username and database name. I coped the old database folder back. And that's about where I am.

I have used the CPANEL and noticed that my server shows the name as myname_drpl1 and that it appends "myname_" before "drupal" in the database name. I have repaired and deleted and tried every username and db name I can think of but I still get the error.

How can I be sure the database exists?
Why can't I just create a new user with all the permissions and change settings.php to reflect that?

I have nothing much on the old version, so I would happily do a clean install of Drupal 5 if that is possible. What would be the steps? Thanks.

Upgrade Questions

Hi everyone - I am getting ready to upgrade one of the sites that I manage - my first Drupal upgrade. I use several CMS sytems (dotnetnuke - postnuke and now drupal) on my personal sites. Since I never tried Drupal, I did a clean install of 5.0 on my main web site and was immediately impressed. The old CMS (postnuke) had a new system requirement of a minimum version of MySQL of 4.0 so the site basically was sitting empty.......but I am rambling.

The live site that I need to upgrade is running 4.7.0 and I plan to upgrade to the current version of 4.7.4. I read books (Drupal by David Mercer) and lurked about the site clicking on forum subjects so I have an IDEA that everything should go ok but............

1) Do I have to delete the old site or just upload the new version overwritting the old site? The other CMS packages allow for the uploading of the upgrade version and it is triggered by going to the site.

2) I took over this particular site and they (the original webmaster) set up several directories that contain things like forums and such in addition to the main site.... probably for development purposes and they have their own settings.php files in the sites directory (that was a surprise!) How do I get these upgraded? When I upgrade the main site, will the upgrade process upgrade these also? Should I copy the new version of Drupal to these directories also?

Funny characters after upgrading...

Further to a previous post on the subject, I have the following remark concerning the display of "funny characters" (in this particular case the left and right apostrophes). Having just upgraded an English language site to 4.7.4 - successfully apparently - I find that a title with these characters in it (which is the title of an article in a book) does not always display correctly.
In order to simplify testing issues, I've switched the theme to the vanilla "Bluemarine" theme, and here is what I observe.

Version select field and collapsible fields are missing (upgrading from 4.7.4 to 5.0 RC1)

I was trying to upgrade my 4.7.4 site to 5.0 RC1, and while running upgrade.php it directs me to the normal database upgrade page, however the version selection box (field) is missing. See screenshot here:

http://www.flickr.com/photos/drupalchina/338149147/
(notice the version select drop box is missing)

Multisite disappears (4.7.2 -> 4.7.5)

Upgrading from 4.7.2 to 4.7.5 was nearly errorless, but - at the end - the home page of a subsite shows the main site. I checked .htaccess, the settings in the sites folder and the database: nothing has changed from the backup.

Someone any idea?

Official Drupal ruling wanted on problem with Unicode settings after upgrading to 4.7

Upgrading from 4.6 to 4.7, I have discovered a problem with "special" characters such as right and left apostrophes for example. On searching the forums, I doscover that this seems to be a known problem: see here and here and here.

There seem to be several proposed ways of dealing with the problem:

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal