|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
What am I doing wrong?
I didn't think it could get much simpler than this but it is giving me an error and I don't understand why.
mysql> create table fubar (foo timestamp default current_timestamp); ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_timestamp)' at line 1 I am running MySQL 4.0.25-standard on Mac OS X 10.4 |
|
#2
|
|||
|
|||
|
did you install the mysql odbc connectors before installing mysql?
__________________
Apache Expert |
|
#3
|
|||
|
|||
|
No, after but I am not using ODBC for this. I am just using the standard mysql command-line app.
Did just installing the ODBC drivers break something? |
|
#4
|
|||
|
|||
|
you install the odbc connector before you install mysql, once you've done this, then you'll be able to connect to the database server
|
|
#5
|
|||
|
|||
|
I can connect just fine. Its just a syntax error after I get connected. Someone just informed me that "default current_timestamp" is not available prior to version 4.1.
Here is the relevant text from the user manual: Quote:
So, it seems that I can only get the behavior I desire by setting the first TIMESTAMP column to DEFAULT NULL. |
|
#6
|
||||
|
||||
|
I'm having the same problem. My first issue was with "latin1" or whatever, so I removed it and now I get this error we're speaking of.
Let me make sure I understand this: If I make the first instance of: Quote:
I need to make: Quote:
Or am I wrong? ... do I have to do it to ALL of the tags? I'm changing hosts from 4.1.x to 4.0.25-standard ... ... obviously I'm using PostNuke (0.75) (I wish I knew of all of this to begin with, I'd have never gone back!) |
|
#7
|
|||
|
|||
|
Quote:
Well, I made it "NULL" and there's no change; there's still errors! HELP! I just want my site up! In fact, if anyone can take my DB and help me, I'll PAY YOU for your services! ... let me know! (No fooling!) |
|
#8
|
||||
|
||||
|
<snip>
sorry, missed a reply which already stated what I wanted to say, can we delete posts? Last edited by Icon : May 18th, 2006 at 07:24 AM. Reason: I should read more carefully |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > What am I doing wrong? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|