Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 233 Vote(s) - 3.58 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error #1046 - No database selected SQL import on XAMPP

#1
I am trying to import the SQL database from my Drupal production site into a sandbox testing site on my local machine. I currently use XAMPP on my machine here at work.

I have downloaded my db `aipiadxxm_if9DHdr.sql` and then I go to the phpMyAdmin on `http://localhost/phpmyadmin/index.php` then to -> Import.

After I import the db I get this Error:

SQL query:
--
-- Database: `aipiadxxm_if9DHdr.sql`
--
-- --------------------------------------------------------
--
-- Table structure for table `if9d_access`
--
CREATE TABLE IF NOT EXISTS `if9d_access` (
`aid` int( 11 ) NOT NULL AUTO_INCREMENT ,
`mask` varchar( 255 ) NOT NULL default '',
`type` varchar( 255 ) NOT NULL default '',
`status` tinyint( 4 ) NOT NULL default '0',
PRIMARY KEY ( `aid` )
) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =1;


MySQL said: Documentation
#1046 - No database selected


What is causing this error message: `#1046 - No database selected` ?
Reply

#2
You need to create and/or select the database on your sandbox machine before importing the SQL for the table structure and data.

In phpMyAdmin, this means choosing a database from the sidebar and *then* using its import tab. If the database you want to fill doesn't exist, you have to create it first using the `Create new database` form.

After import, you should confirm that the export-import process hasn't affected the [anonymous user record][1] (uid 0).


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through