Really, the simplest answer is to export your old database then import it into the new one that you've created to replace the old one. Of course you should use myPHPAdmin or command line to do this.
Renaming and Jerry-rigging the database is a BAD-IDEA!DO NOT DO IT. (Unless you are the "hacker-type" sitting in your mother's basement in the dark and eating pizza sleeping during the day.)
You will end up with more problems and work than you want.
So,
1. Create a new_database and name it the correct way.
2. Go to your MyPHPAdmin and open the database you want to export.
3. Export it (check the options but you should be ok. with the defaults.
4. You will get a file like or similar to this.
5. The extension on this file is .sql
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 30, 2010 at 12:17 PM
-- Server version: 5.0.90
-- PHP Version: 5.2.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `mydatab_online`
--
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`timestamp` int(15) NOT NULL default '0',
`ip` varchar(40) NOT NULL default '',
`file` varchar(100) NOT NULL default '',
PRIMARY KEY (`timestamp`),
KEY `ip` (`ip`),
KEY `file` (`file`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`timestamp`, `ip`, `file`) VALUES
(1277911052, '999.236.177.116', ''),
(1277911194, '999.236.177.116', '');
This will be your .sql file. The one that you've just exported.
Find it on your hard-drive usually it is in /temp
Select the empty database that has the correct name(the reason why you are reading this)
SAY: Import - GO
Connect your program to the correct database by entering it into what usually is a configuration.php file. Refresh the server (both, why? because Iam a UNIX-OLDTIMER and I said so.
Now, you should be in good shape. If you have any further questions visit me on the web.