Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > mysq+php tutorial, mysql user issues

mysq+php tutorial, mysql user issues
Thread Tools
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status: Offline
Reply With Quote
Dec 29, 2002, 09:14 PM
 
Eek a few questions:

1) Anyone know of a good tutorial for mysql + php ?

Something very hands-on to test a simple database on my Powerbook on which I'm using as a dev server with Apache.

php install seems fine, though mysql is giving some odd results:

eg:


1) vsurfer% ./bin/mysqladmin -u root -h Kota.local. password foobar
./bin/mysqladmin: connect to server at 'Kota.local.' failed
error: 'Host '10.0.1.xxx' is not allowed to connect to this MySQL server'

2)The mysql user that is already created in OSX - what's the deal with the password with this user since it was preset apparently?

Thanks in advance


----------------------
OSX 10.2.3
php 4.1.2

| pid_file | /usr/local/mysql-3.23.53/data/Kota.local..pid
| socket | /tmp/mysql.sock
| version | 3.23.53-entropy.ch
(Last edited by vsurfer; Dec 30, 2002 at 09:43 PM. )
     
vsurfer  (op)
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status: Offline
Reply With Quote
Dec 30, 2002, 09:38 PM
 
OK seem to be doing better...

mysql> SHOW DATABASES
-> ;
+----------+
| Database |
+----------+
| mysql |
| test |
+----------+
2 rows in set (0.00 sec)

mysql> PROCESS
-> ;
ERROR 1064: You have an error in your SQL syntax near 'PROCESS' at line 1
mysql> SHOW FULL PROCESSLIST;
+----+------+-----------+------+---------+------+-------+-----------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+------+---------+------+-------+-----------------------+
| 8 | vsurf | localhost | test | Query | 0 | NULL | SHOW FULL PROCESSLIST |
+----+------+-----------+------+---------+------+-------+-----------------------+
1 row in set (0.00 sec)

mysql>

and

http://hotwired.lycos.com/webmonkey/...x2a_page2.html

is working out well as a php intro

http://www.programmingtutorials.com/tutorial.asp?id=SQL
is also helpful

May have answered fixed/my own questions! but sure to be back with more. But feel free to chip in!

Ta
     
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Dec 31, 2002, 01:15 PM
 
PHP and MySQL both have really good manuals that will show you how to do most things you need to do ... it's worth giving them a shot.
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
Junior Member
Join Date: Oct 2001
Location: Great State of Texas
Status: Offline
Reply With Quote
Jan 2, 2003, 12:08 AM
 
I agree with gorgonzola. Both PHP and MySQL have outstanding documentation on their web sites.

http://www.php.net/docs.php

http://www.mysql.com/documentation/index.html

Start there, both of those sites have searchable documentation and user comments. I was able to teach my self with those 2 sites and this program. JaneBuilder 1.5 for PHP

http://www.seejanecode.com/

Janebuilder is killer for quickly creating SQL statements to do what you want. Its output is very simple and straightforward. I use Janebuilder to create basic pages that I can tear apart in Dreamweaver MX or BBedit and make them do more complex stuff.

Once you get into a little more indepth projects, check out DevShed.com. They have some awesome tutorials.

Have fun!
nolo contendere: A legal term meaning: "I didn't do it, judge, and I'll never do it again."
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:49 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2