LONGTEXT - All string column types are VAR? - MySQL

2003-03-04 Thread jason wesley upton
I know that for most purposes you can treat TEXT and BLOB as VARCHAR under a longer 
name, but is the same true of LONGTEXT?  I have a field 
that needs to be open to a huge amount of text, but I don't want my database's size to 
be huge if that maximum allowed amount of text is not used.

Thanks.


upton


sql query queries smallint mysql fancy join fun words.







-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



MySQL Question involving AUTO INCREMENT and PRIMARY IDs. - sql

2002-06-27 Thread jason wesley upton

EXPLANATION:

here's the pertinent piece of my sql create statement:

ID INT NOT NULL  AUTO_INCREMENT, PRIMARY KEY (ID));

i have used this create statement numerous times without this problem.  in the past, 
let's say i inserted 3 entries: A, B, and C.  their IDs were 1,2, and 
3.  then i delete C from the database.  when i then insert D its ID is 4.  leaving 
1,2, and 4 in the database.  seems like this is safe and as it should be.

all this morning, using the above example with a deviation...after i delete C and then 
insert D...D's ID is 3. if i delete B and C, then insert D and E...their 
ID's are 2 and 3.  

i was under the impression that once an ID had been used (in auto increment and as 
primary) it was gone.  must i also make the ID unique? i can see 
why a primary key might need to be not UNIQUE (for concatenation of entries...etc), 
but i don't think i've done it iN the past (when it has incremented 
correctly).   



thanks ahead of time.  query sql for the filter.



jason wesley upton







-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MySQL Question involving AUTO INCREMENT and PRIMARY IDs. - sql

2002-06-27 Thread jason wesley upton

EXPLANATION:

here's the pertinent piece of my MySQL create statement:

ID INT NOT NULL  AUTO_INCREMENT, PRIMARY KEY (ID));

i have used this create statement numerous times without this problem.  in the past, 
let's say i inserted 3 entries: A, B, and C.  their IDs were 1,2, and 
3.  then i delete C from the database.  when i then insert D its ID is 4.  leaving 
1,2, and 4 in the database.  seems like this is safe and as it should be.

all this morning, using the above example with a deviation...after i delete C and then 
insert D...D's ID is 3. if i delete B and C, then insert D and E...their 
ID's are 2 and 3.  

i was under the impression that once an ID had been used (in auto increment and as 
primary) it was gone.  must i also make the ID unique? i can see 
why a primary key might need to be not UNIQUE (for concatenation of entries...etc), 
but i don't think i've done it iN the past (when it has incremented 
correctly).   



thanks ahead of time.  



jason wesley upton



a dropped query fancy table opens mysql queries from an sql integer with some happy 
pants that'll join unless union = a less enthusiastic return from the VARCHAR 
pleasant. - for the spam filter 
that hates my guts.




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Newbie question

2002-06-21 Thread jason wesley upton

if i could add to this question a bit:

what are the steps in adding a user that will have access to only one database?

i've tried using both:

GRANT SELECT, INSERT, UPDATE, DELETE, ALTER ON uview.* TO user@% IDENTIFIED BY 
password;  (then did a FLUSH PRIVILEGES)

and i've tried adding directly yo the users database:

NSERT INTO user 
VALUES('localhost','USERNAME',PASSWORD('some_pass'),'SELECT','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

but i can't seem to get things to work.  i've looked over the manual and a small 
tutorial.


are there some steps i'm missing? 


thanks.


jason upton





6/20/2002 4:30:47 PM, Emma Grant [EMAIL PROTECTED] wrote:

Hi, I am just starting out with mysql. 

MySQL allows anon access so I don't have to log on to the sql just the
linu server. 

I am trying to create a test database 'test2'. I am logged on as my user
'emil' (not root) on a test linux  server. When I go to create the
database: 

mySQL CREATE DATABASE test2; 

It gives me the following error. 

Error: 1044: Access denied for user '@localhost' for database test2

I then log in as root and change my privelages: 

mySQL  GRANT ALL ON test2.* for emil;

But still I get the same error when I try to create it.

In fact, I can't get on to a database even if the root creates it and
then I GRANT the user 'emil' ALL to the newly created database.

Can someone direct me in the right place?   

Thanks, 

Emma



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php














-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php