Re: What to do if a table is supposed to get 3GB data per day?

2006-12-27 Thread Saqib Ali

wow 30GB is a lot of data. Do let us know what kind of hardware / OS
you are using.

In the past I have worked with larger tables then these, but I was
using Objectivity DB running on UltraSPARC 64bit architecture.

--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: What is your favorite GUI tool for creating and querying tables in MySQL?

2006-12-21 Thread Saqib Ali

sqlyog is pretty nice:
http://www.webyog.com/


saqib
http://www.full-disk-encryption.net

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: What is your favorite GUI tool for creating and querying tables in MySQL?

2006-12-21 Thread Saqib Ali

and also
http://fabforce.net/dbdesigner4/

sorry for 2 seperate emails.


saqib
http://www.full-disk-encryption.net

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Retaining last primary key value

2006-12-08 Thread Saqib Ali

try the DELETE with the WHERE clause

e.g.
DELETE FROM table_name WHERE 1=1

saqib
http://www.full-disk-encryption.net

On 12/8/06, Adam Zerlin [EMAIL PROTECTED] wrote:

Hello,

When I run a DELETE FROM table_name, my primary key field is reset
back to 1.  Is there any way for it to not do this?  Preferably, if
there were 1000 records in table_name, and I ran DELETE FROM
table_name, that the primary key field would start at 1001.

This is an InnoDB table if that helps.

Thanks!

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]





--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



OT: LAMP appliance for non-profit use

2006-12-07 Thread Saqib Ali

Hello All,

I know this is little bit off-topic but I think users of this group
can give good advice on this topic.

We have a in-house built application using MySQL + PHP + Apache. It is
essentially a elaborate collection of online forms that will be used
for managing school scholarship in the 3rd world countries. The
student/teachers will either come to the office or fill out the forms
online.

We have identified few pilot location and would like to deploy this
application. However due to lack of IT support at the location we have
decided to use a pre-configured appliance which support the LAMP
stack. All we want to do is directly ship the appliance to the
location, and remotely install our app.

We want the appliance to require minimal maintenance and
administration, and have a auto-update feature to get security patches
etc.

I had previously worked on a similar project and used Sun Cobalt 550
servers. But now I think Sun has stopped making them and you can only
buy them refurbished and the auto-update features are severely
limited.

Any other suggestion??? We want the appliance to cost us $1,000 / unit.

Thanks
saqib
http://www.full-disk-encryption.net

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Best practices for deleting and restoring records - moving vs flagging

2005-08-11 Thread Saqib Ali
Hello All,

What are best practices for deleting records in a DB. We need the
ability to restore the records.

Two obvious choices are:

1) Flag them deleted or undeleted
2) Move the deleted records to seperate table for deleted records.

We have a  complex schema. However the the records that need to be
deleted and restored reside in 2 different tables (Table1 and Table2).

Table2 uses the primary key of the Table1 as the Foriegn key. The
Primary key for Table1 is auto-generated. This make the restoring with
the same primary key impossible, if we move deleted data to a
different table. However if we just flag the record as deleted the
restoring is quite easy.

Any thoughts/ideas ?

-- 
In Peace,
Saqib Ali
http://www.xml-dev.com/blog/
Consensus is good, but informed dictatorship is better.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Query Speed in Terminal vs. PHP

2004-03-02 Thread Saqib Ali
Is index defined on all of your tables?

Saqib Ali
-
http://validate.sf.net  (X)HTML / DocBook Validator and Transformer

On Tue, 2 Mar 2004, Chris Fowler wrote:

 I have a query that is admittedly inefficient in that it is doing
 multiple OR clauses and joining multiple tables. However, the query
 runs at an acceptable speed if I am in a terminal session and run the
 query directly in the terminal. On the other hand, when PHP performs
 the same query for use in a page, it takes 5-7 minutes for the query to
 run (the same query running in the terminal takes about 3-5 seconds). I
 can do a show processlist when the php page runs the query and I see
 Copying to tmp table in the State column of the show processlist
 results. Does anyone have any tips on why it is so much slower when run
 from php vs. the terminal.


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Database-design

2003-11-11 Thread Saqib Ali
you need to normalize your database structure, and create an ER diagram
based on that.


On Tue, 11 Nov 2003, Meli Meli wrote:


 I have a table with following structure:

 Id
 first quarter
 second quarter
 third quarter
 last quarter
 year
 month
 week
 day

 On an entry not all fields of the four quarter fields are covered with values.
 Following combinations are possible:

 first quarter | second quarter | third quarter | last quarter



 xnullnull   null

 null  x  null   null

 null null  xnull

 null nullnullx

 x  x null   null

 x null xnull

 x null   null x

 null   x   xnull

 null   x  nullx

 null  null x  x

 x   x   xnull

 x   x null x

 x null  x  x

 null   xx  x

 x  xx  x



 The table will receive many thousands of entry’s.

 Would it be better to divide the table in to 15 small tables in order to not 
 register fields with null values?



 Thanks for helping

 Regards Martin



 -
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Lost Password

2003-11-04 Thread Saqib Ali
you can always reset the mysql root passwd
http://www.mysql.com/doc/en/Resetting_permissions.html


Saqib Ali
-
http://validate.sf.net --- XHTML/HTML/DocBook Validator

On Tue, 4 Nov 2003, Carol Andrejak wrote:

 Hello Listers,

 I have a problem in that I cannot find my user id and password to log into mysql as 
 administrator. I can never remember passwords so I write them all down in a small 
 book however when I reinstalled mysql early last month, evidently I neglected to 
 write down the new user id and password in my book. I haven't touched telnet since 
 then.

 So now I can't log in to create a new user or do anything else. sigh

 Is it possible to sit down in front of the server logged in as root and find the 
 file that has this information and have a look at it? Maybe if I can see the user 
 names it'll jog my memory as to the password. I can try a couple to see if any work.

 If this is not possible, what recourse do I have? I don't want to mess with the 
 database and start over and I seriously don't want to have to do anything to mysql 
 as it took me two weeks to get it to work with the DBI perl module. Now that it's 
 working, I'm terrified to touch it in case it breaks. Thanks for any guidance. I 
 promise this time to not forget to write it down.



  Carol Andrejak
  Webmaster
  Delaware State University
  Grossley Hall Rm. 1
  302-857-7045




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: phpmyadmin screw up

2003-11-04 Thread Saqib Ali
seems like you set the mysql root passwd
which is the right thing to do.

now should connect as follows:
# /usr/local/mysql/bin/mysql -u root -p

Saqib Ali
-
http://validate.sf.net --- XHTML/HTML/DocBook Validator

On Tue, 4 Nov 2003, joffrey leevy wrote:

 Hi all:

 I was trying to use phpmyadmin for the first time and
 messed up when trying to give the [EMAIL PROTECTED] a
 password.  I did that because phpmyadmin told me
 something about lax security using root with no
 password.  Anyhow something went wrong.


 Now I can't do anything with phpadmin or mysql client.
The message is -   Error 1045:  Access Denied for
 User:  (Using Password:No).  Grateful for anyone's
 help.


 Thanks




 __
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 http://antispam.yahoo.com/whatsnewfree

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Is MySQL Relational? (was: Foreigner keys in MySQL?)

2003-10-28 Thread Saqib Ali
a question...

is any DB that complies to the Relational Algebra a Relational DB???

Saqib Ali
-
http://validate.sourceforge.net --- XHTML/HTML/DocBook Validator

On Tue, 28 Oct 2003 [EMAIL PROTECTED] wrote:


 I tend to agree with the past two posts that mysql is in fact relational,
 and would like to add that if we are going to make blanket statements that
 something IS or IS NOT that we qualify our responses.  personlly i would
 like to know why Martijn views it as being a non relational db, without
 argument.  If you just say its so, why am is supposed to take that
 statement over those that provide a full email of text like bluejack or
 John that provided additional information via a link.

 Just saying No, to a question like that does not lend to learning only to
 confusion.

 sorry about the mini rant
 jeff







   bluejack
   [EMAIL PROTECTED]To:   [EMAIL PROTECTED]
   om  cc:
Subject:  Is MySQL Relational? (was: 
 Foreigner keys in MySQL?)
   10/28/2003 11:38
   AM






 10/28/03 8:11:16 AM, Martijn Tonies [EMAIL PROTECTED] wrote:

 
  If you are trying to determine whether MySQL is a relational database,
  the answer is yes.
 
 Ehm... the answer is no.
 
 It's getting better, that's for sure.

 MySQL may or may not conform to some standard or another, and it may
 or may not perform the tasks that you, personally, want it to, but
 in fact it *is* a relational database, as opposed to a flat file or
 an object database.

 I recommended the questioner evaluate her needs against MySQL's
 available feature set, because if you are used to Oracle (or some
 other robust, commercial relational database) you may be surprised
 at some of the differences or absences in MySQL.

 But the questioner made it seem as though she was really just
 trying to get a feel for the basics scope of MySQL, and in that
 context, yes, MySQL is designed to a implement a relational
 database model as opposed to some other fundamental type of
 database.

 So, what's your laundry list of things MySQL should do?

 --bluejack



 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]






 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Is MySQL Relational? (was: Foreigner keys in MySQL?)

2003-10-28 Thread Saqib Ali
so funtions that can be performed by relation algebra are a subset of the
functions performed by a relational database?

however isn't it required for a relational database to perform all the
functions of relation algebra?


Saqib Ali
-
http://validate.sourceforge.net --- XHTML/HTML/DocBook Validator

On Tue, 28 Oct 2003, Jon Frisby wrote:

 No.  Codd's rules defining what is a relational database are more
 specific than relational algebra can express.  Essentially the
 requirements to be a relational database are a superset of the
 operations defined by relational algebra.

 -JF

  -Original Message-
  From: Saqib Ali [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 28, 2003 8:47 AM
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Re: Is MySQL Relational? (was: Foreigner keys in MySQL?)
 
 
  a question...
 
  is any DB that complies to the Relational Algebra a
  Relational DB???
 
  Saqib Ali
  -
  http://validate.sourceforge.net --- XHTML/HTML/DocBook Validator
 
  On Tue, 28 Oct 2003 [EMAIL PROTECTED] wrote:
 
  
   I tend to agree with the past two posts that mysql is in
  fact relational,
   and would like to add that if we are going to make blanket
  statements that
   something IS or IS NOT that we qualify our responses.
  personlly i would
   like to know why Martijn views it as being a non relational
  db, without
   argument.  If you just say its so, why am is supposed to take that
   statement over those that provide a full email of text like
  bluejack or
   John that provided additional information via a link.
  
   Just saying No, to a question like that does not lend to
  learning only to
   confusion.
  
   sorry about the mini rant
   jeff
  
  
  
  
  
  
  
 bluejack
 [EMAIL PROTECTED]To:
  [EMAIL PROTECTED]
 om  cc:
  Subject:  Is
  MySQL Relational? (was: Foreigner keys in MySQL?)
 10/28/2003 11:38
 AM
  
  
  
  
  
  
   10/28/03 8:11:16 AM, Martijn Tonies [EMAIL PROTECTED] wrote:
  
   
If you are trying to determine whether MySQL is a
  relational database,
the answer is yes.
   
   Ehm... the answer is no.
   
   It's getting better, that's for sure.
  
   MySQL may or may not conform to some standard or another, and it may
   or may not perform the tasks that you, personally, want it to, but
   in fact it *is* a relational database, as opposed to a flat file or
   an object database.
  
   I recommended the questioner evaluate her needs against MySQL's
   available feature set, because if you are used to Oracle (or some
   other robust, commercial relational database) you may be surprised
   at some of the differences or absences in MySQL.
  
   But the questioner made it seem as though she was really just
   trying to get a feel for the basics scope of MySQL, and in that
   context, yes, MySQL is designed to a implement a relational
   database model as opposed to some other fundamental type of
   database.
  
   So, what's your laundry list of things MySQL should do?
  
   --bluejack
  
  
  
   --
   MySQL General Mailing List
   For list archives: http://lists.mysql.com/mysql
   To unsubscribe:
  http://lists.mysql.com/mysql? [EMAIL PROTECTED]
  
  
  
  
  
 
  
   --
   MySQL General
  Mailing List
   For list archives: http://lists.mysql.com/mysql
   To unsubscribe:
  http://lists.mysql.com/mysql? [EMAIL PROTECTED]
  
  
 
  --
 
  MySQL General Mailing List
 
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:
  http://lists.mysql.com/mysql? [EMAIL PROTECTED]
 
 



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



corrupted passwd

2003-09-29 Thread Saqib Ali
Hello All,

I think the passwd on my installation of mysql of
mysql-standard-4.0.14-pc-linux-i686 is corrupted. I can't login with the
root account. I was able to do so till last week.

I trying to follow the instructions on resetting the passwd, but I get the
following err msg.

# ./mysqld --skip-grant-tables Fatal error:
Please read Security section of the manual to find out how to run mysqld as root!

Any ideas?

Saqib Ali
-
http://www.xml-dev.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]