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
You have to first switch to the
phptestdatabase before importing the data. To do this in phpMyAdmin, click the database in the list on the left and then selectimport.