Beginning with a phpmyadmin upgrade 2 days ago, the following statements are inserted into an export file:
--
-- Database: `unwantedname`
--
CREATE DATABASE IF NOT EXISTS `unwantedname` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `unwantedname`;
The statements in boldface are the new ones added, while the first one has been there for a while and doesn't cause a problem.
The boldfaced database names DO cause a problem and prevent the site from being pushed.
The server administrator just told me they can't do anything about this, and I don't believe him.
I have very little interest in editing the export files every day and removing the offending lines or renaming the DBs to the names of the production DB, the two proposed solutions.
If anyone knows of a solution I would very much appreciate your posting it here.
I've attached the ugly error I receive.
Thanks very much ... Sam Gerber
-
☆ A M B ☆
- 24,524 Posts
Are you creating the export file, or is this an automated procedure?
When exporting, you should be given a number of options, including having/not having a create database line.
To expand on what Susan said, you can set the options and I think they tend to be sticky, so even if the process is automated, it *might* work to do a manual export once to set the options.
-
☆ A M B ☆
- 24,524 Posts
Yes, I did some checking on the latest version, and it appears that it adds that line in the background. The only solution I saw was a hack of the code, which of course is not an option if you're using it from a shared hosting control panel.
-
☆ A M B ☆
- 24,524 Posts
No, you're not the only one having problems with this. I've never run across it yet, but it seems pretty stupid to me. Somebody wasn't thinking.
I have to agree. Moving a site from localhost to remote or vice versa could be very ugly for some people. Hopefully, it will be patched soon.
OTOH, it might make MyComponent more popular.