Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2005, 11:14 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP 5 and MySQL compat probs

I have recently began reading Beginning PHP5, Apache, MySQL Web Development by Wrox Press.

Having successfully installed, configured and tested Apache and PHP5. I have run into problems with MySQL Ver 4.0.15

Using the DOS prompt I'm able to run another of tests such as:

c:\mysql\bin\mysql test

or

NET START / STOP MySQL

or

show databases;

However when I attempt to run any kind of query such as:

SHOW COLUMNS FROM user FROM mysql;

or

SELECT user, host FROM user;

or

DELETE FROM user WHERE Host='localhost' AND User='';

I get the following error each time:

ERROR 1046: NO DATABASE SELECTED

Having followed the instructions in the book, I'm a little puzzled to how some commands work, while others dont. Could somebody advise where I might be going wrong?

Could there be an issue with me using PHP 5 with the stated version of MySQL ?


Gaz
__________________
Gaz





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL MiNdWaRp PHP How-To 0 May 14th, 2007 06:25 PM
MySQL/PHP Help blackout Beginning PHP 1 August 8th, 2006 07:49 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
MySQL/PHP Gyhth PHP Databases 3 May 27th, 2005 08:21 PM
Using PHP with MySQL nav Beginning PHP 1 September 5th, 2004 04:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.