SQL查詢:
--
-- Database: `attend`
--
-- --------------------------------------------------------
--
-- Table structure for table `attend`
--
CREATE TABLE IF NOT EXISTS `attend` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`name` varchar(15) NOT NULL DEFAULT 'name',
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`timeing` time NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
MySQL said: Documentation
#1046 - No database selected
我轉移我的數據庫。我一次導出所有的數據庫。
所以在導入期間我不能選擇單個數據庫。
並通過直接導入sql文件我得到上述錯誤。在phpmyadmin import database error
發現,但不知道如何實現在.sql文件該解決方案約30數據庫
請幫助我,因爲我已經導出所有的數據庫後刪除舊的數據庫,並需要進口mASAP
可能的解決方案。
最後我申請USE語句在SQL文件中的每個數據庫之前,很exaushed工作,但保護正常工作 –