logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 10-26-2011, 06:20 AM   #1
Austintxous
 
Join Date: Aug 2011
Location: Austin, Texas USA
Posts: 26
Default Php installation tutorial gets hung up on the create database steps.

Working through the excellent tutorial by David Powers, about setting up a php environment in DW, http://www.adobe.com/devnet/dreamwea...setup_php.html, 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

Last edited by Austintxous; 10-26-2011 at 06:29 AM..
Austintxous is offline   Reply With Quote
Old 10-26-2011, 08:14 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

you are using xxamp? if so open phpmy admin create your database and give permissions from there
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:41 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com