Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 31st, 2003, 06:24 PM
bjoerndalen bjoerndalen is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Derbyshire , UK
Posts: 7 bjoerndalen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 46 m 21 sec
Reputation Power: 0
Populatimg MySQL database with txt files...

Hi guys...

Just started trying to get my head around MySQL and php.

I have been following the tutorial that comes in the manual with MySQL and I am having a problem with the following.

I have created a txt file and have used this to add data into my database. However when I do a SELECT * FROM pet instead of getting a NULL value shown in the death column I get the following 0000-00-00. I have used the \N value to populate this field in the txt file as directed. Why is it throwing the date value??
Especially when I have done the exact same thing in the sex field and that shows a NULL value...

I guess it'll be something really daft , thats why I put it in here.

Also if you would be so kind as to explian why it is that when I access MySQL through MySQL.exe I havent been asked for host user or password parameters. I have looked in the user table of the mysql database and I have a root account with no password and another account which I must have created when I installed MySQL. Is it because I am accessing MySQL and as there is no password associated with this account so I get straight in...

Sorry if these seem mundane questions .I guess the last point is to do with permissions etc and I've tried to look at some of the things written on it and it doesnt sink in....

Thanks

Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Populatimg MySQL database with txt files...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT