Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6720321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:11:54+00:00 2026-05-26T09:11:54+00:00

Working through the excellent tutorial by David Powers , about setting up a php

  • 0

Working through the excellent tutorial by David Powers, about setting up a php environment in Dreamweaver. I’ve hit a snag.

Down in the section “Creating a MySQL database and user account” is where I go off the rails. I create a database named ‘phptest’, then try to import it into my setup, and I get an error #1046. No database selected. After investigating, I found the path that the tutorial specified for me to create the database, in htdocs/php_test/assets…did have a file named ‘php_test.sql, but it was the default file that writes a databas, supplied with the tutorial. However something WAS written to another directory, Xampp/mysql/data.

It was a FOLDER named ‘phptest’, with a file in it named ‘db.opt’ I can’t import this folder into my project, as it will only take a database file or an archive. So, I’m stuck and don’t know what to do next…
This is on Windows 7 64 bit. Php
I’m running the default installation of php, as the tutorial directs. Other specs: Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 MySQL client version: mysqlnd 5.0.8-dev – 20102224 – $Revision: 310735 $ PHP extension: mysql Ideas? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:11:55+00:00Added an answer on May 26, 2026 at 9:11 am

    You have to first switch to the phptest database before importing the data. To do this in phpMyAdmin, click the database in the list on the left and then select import.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working through the (excellent) railstutorial.org site have have a basic question about
Working through Agile Web Development with Rails edition 4 and hit the section on
I have been working my way through Scott Guthrie's excellent post on ASP.NET MVC
I'm working through Practical Web 2.0 Appications currently and have hit a bit of
I've just finished going through the MvcMusicStore tutorial found here . It's an excellent
Working through a zend tutorial & get this message, & not sure where to
Currently working through a Teach Yourself WPF tutorial. Usually I can mentally convert from
After working through the Django tutorial I'm now trying to build a very simple
I'm working through Peter Mularien's Spring Security 3, and am having a problem setting
Working through the summer of nHibernate tutorials have gotten to the section on queries.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.