#mysql - Tue 15 May 2007 between 01:31 and 02:02



chadmaynardlol
UltraVi01well, it seemed simple
chadmaynardlook:
MegiddoIs it safe to compare TIMESTAMP with greater and less than?
IE, NOW() < eventtime
SarahSMegiddo: Yep
MegiddoSweet, thanks
chadmaynardSarahS is sweet
MegiddoIndeed
actionSarahS blushes
SarahSblushes
/quit
MysticOnehi all, hopefully quick question ... I'm using MySQL 5.0 (haven't used it in a while), just created a database, created a user, set the password, granted the user all on the database ... but it won't let me access the database as that user
I just keep getting access denied
could anyone possibly point me in the right direction?
olliewhat are you trying to accesss it from e.g php?
MysticOnemysql commandline client
basically mysql --user=myuser -p databasename
it prompts me for the password, I enter it, then it says access denied
olliecreate another user and see if that works, it is possible that you made a typo when setting password mysql does not ask for a confirmation
MysticOneI'm certain I didn't, set it again to be sure :)
I'll try creating another user anyway, though
olliealso are you accessing it from the server or via ssh?
MysticOneI'm logged into the server via ssh, and accessing it locally
raf256what typ to use to hold a yes/no value
ollieboolean
I ask because I think i remmeber having a similiar problem where by when i used shh it didn't work but when i logged into the server itself using a keyboard/video/mouse connected it worked
chadmaynardbool = tinyint(1)
olliemight of been something else though
MysticOneOllie: well the server is about 3k miles away ... so not going to be logging in that way :)
olliechadmaynard, :)
raf256so TINYINT length 1 yes?
olliefair enough
raf256but 1 is 1 digit not 1 byte?
MysticOneit says 'user'@'localhost' when I attempt to login, though
ollieyes so you store 1 for yes 0 for no
raf256also it can store like 4 or 7
can I have for just 0 or 1
perhaps binary would help? TINYINT length 1 binary?
ollieyeah you could have any 1 length digit
luke-jrSQL should have an IP-ADDRESS type or something so buggy coders can't use a varchar(15) for it :p

Page: 4 11 18 25 32 39 46 53 60 67 

IrcArchive