You are here: Re: Naming conventions in php referring to mysql databases « PHP Programming Language « IT news, forums, messages
Re: Naming conventions in php referring to mysql databases

Posted by e_matthes on 05/29/07 14:40

On May 28, 9:16 am, Dikkie Dik <nos...@nospam.org> wrote:
> > I am developing on a windows machine, and hosting on a linux server.
> > I have written my php code using table names like siteStats and column
> > names like userStatus. I have just realized the conflict this creates
> > when uploading to the live server; table siteStats is not recognized,
> > but table sitestats is recognized.
>
> There is a server setting in MySQL that says how it treats table names
> (add it to my.cnf if it does not exist). For linux, this defaults to "0"
> (case sensitive), and for windows it erroneously defaults to "1"
> (case-insensitive, stored as lower case). For your windows server, you
> should set it to "2" (case-insensitive, stored as is). Even then, some
> MySQL versions do not interpret this setting right (I have a 5.0x
> version that gives a lower-case table name in the foreign key clauses of
> a SHOW CREATE TABLE answer).
>
> Hope this helps.


Thanks everyone; this has helped me develop an approach that will work
well for my projects.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация