Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Richard Heyes
So where's the advantage of VARCHAR ?

 Less space on disc = less data retrieved from disc = faster data
 retrieval - sometimes. If you have small columns, a small number of
 rows, or both, then char columns may be faster. If you have large
 columns of varying actual length, lots of rows, or both, then varchar
 columns may be faster.

I still think a CHAR field would be faster than a VARCHAR because of
the fixed row length (assuming every thing else is fixed). Perhaps
someone from the MySQL list could clarify...?

-- 
Richard Heyes

HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 4th)

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: Data files from 4.1.13 with 5.0.x

2008-08-07 Thread Richard Heyes
 Would data files from 4.1.13 work with 5.0.x or will I have to use an SQL 
 dump?

Well, not to worry, I managed to start 4.1.13 and got an SQL dump. Cheers.

-- 
Richard Heyes
http://www.phpguru.org

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



Data files from 4.1.13 with 5.0.x

2008-08-06 Thread Richard Heyes
Hi,

Would data files from 4.1.13 work with 5.0.x or will I have to use an SQL dump?

Thanks.

-- 
Richard Heyes
http://www.phpguru.org

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



Table aliasing

2008-08-01 Thread Richard Heyes
Hi,

Is there a way in MySQL to define an alias for a table, so in effect
it has two names? For migration purposes.

Thanks.

-- 
Richard Heyes
http://www.phpguru.org

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



Re: Table aliasing

2008-08-01 Thread Richard Heyes
No, the net effact would be that the table would have two names.

-- 
Richard Heyes
http://www.phpguru.org

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



Re: Table aliasing

2008-08-01 Thread Richard Heyes
 I think what you want is CREATE VIEW test.v AS SELECT * FROM t;

That will do the job, thank you.

-- 
Richard Heyes
http://www.phpguru.org

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



Re: Migrate HUGE Database

2008-03-11 Thread Richard Heyes

How very inconsistent and obnoxious.


But yet far more secure. FWIW, if you're transferring between machines 
you can gzip the output of mysqldump to compress it, resulting in far 
less transfer time.


Eg.

mysqldump -u username -p database_name | gzip -c  dump.sql.gz

IIRC

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv

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



Re: Backup table structure, not data

2008-02-18 Thread Richard Heyes

Is there any way to backup a complete database structure
(tables/fields/indexes/etc), without the data?  Or even get a creation
script per table?

At present the only way I can think of is to restore a backup to another
server and just delete records (a legacy database with data hitting over
12GB, might take some time) - but there's gotta be an easier way to do
it...


mysqldump has a --no-data option. Try man mysqldump (assuming your 
MySQL server is Unix based.


--
Richard Heyes
http://www.websupportsolutions.co.uk

Knowledge Base and Helpdesk software hosted for you - no
installation, no maintenance, new features automatic and free

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



Re: failed queries

2008-01-24 Thread Richard Heyes

John Roddy wrote:

I know that successful, data changing queries get logged in the binary log. But 
is there any
 way to see the actual queries that fail (i.e. timeouts, deadlocks)? 
I'm hoping there's a
 way other than using the general query log, which takes up too much 
space just to catch

 that occasional failed update.

Use your abstraction layer to log queries that pass through it.

--
Richard Heyes
http://www.websupportsolutions.co.uk

Knowledge Base and Helpdesk software that eases your support
burden and helps increase your sales.

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

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



Bigint

2008-01-16 Thread Richard Heyes
Performance wise, what is a BIGINT like in comparison to an INT on a 32 
bit machine?


Thanks.

--
Richard Heyes
http://www.websupportsolutions.co.uk

Mailing list management service allowing you to reach your Customers
and increase your sales.

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

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



Re: Bigint

2008-01-16 Thread Richard Heyes

I think it's the same.


I seem to remember that a BIGINT id two INTs tacked together, so how is 
that possible?


--
Richard Heyes
http://www.websupportsolutions.co.uk

Mailing list management service allowing you to reach your Customers
and increase your sales.

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

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



Re: [SPAM] - Re: OT: Sun to buy Mysql - Email found in subject

2008-01-16 Thread Richard Heyes

Will this bring good things to MySQL?


$800,000,000 tends to bring good things. Hopefully. :-)

--
Richard Heyes
http://www.websupportsolutions.co.uk

Mailing list management service allowing you to reach your Customers
and increase your sales.

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

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