Error when importing sql database to phpmyadmin
-
Hi everyone.
I am attempting to transfer my live site to my localhost for testing and have taken the following steps:
1) Uploaded the theme, plugins, and upload folders to my pc via Dreamweaver – maintaining the folder structure.
2) I have exported the live .sql database and saved as a text file.
3) I have changed the http://www.mysite.co.uk occurrences with http://localhost/mysite, so that hte paths to all documents are correct
However, when I go to import the sql file into phpmyadmin I get the following error:
Error SQL query: -- phpMyAdmin SQL Dump -- version 2.8.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 23, 2010 at 09:16 PM -- Server version: 4.1.20 -- PHP Version: 5.2.8 -- -- Database: <code>oliverbee</code> -- -- -------------------------------------------------------- -- -- Table structure for table <code>wp_commentmeta</code> -- CREATE TABLE <code>wp_commentmeta</code> ( <code>meta_id</code> bigint( 20 ) unsigned NOT NULL AUTO_INCREMENT , <code>comment_id</code> bigint( 20 ) unsigned NOT NULL default '0', <code>meta_key</code> varchar( 255 ) default NULL , <code>meta_value</code> longtext, PRIMARY KEY ( <code>meta_id</code> ) , KEY <code>comment_id</code> ( <code>comment_id</code> ) , KEY <code>meta_key</code> ( <code>meta_key</code> ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =1; MySQL said: Documentation #1046 - No database selectedI believe I may have made a simple error somewhere.
Please let me know if you have encountered this or if you know of a solution to this problem.
Thanks all
O
The topic ‘Error when importing sql database to phpmyadmin’ is closed to new replies.