coldfingertips has asked for the wisdom of the Perl Monks concerning the following question:
I have a few small CGI scripts that write to and read from the database now but I need to create the database via PHPAdmin myself. There are some scripts out there that actually set up the database itself AND the tables, not just the tables.
How can you do this? How would you get the user's database name, assign privelegdes, setup the MySQL database, etc?
Secondly, is there a way to make the char limit on any of the columns infinite to the point where there are no coded limits? I store URLs sometimes and some are longer than others, some exceeding 150 characters. If I set varchar(200) for everything, that's setting up some dead weight, isn't it? Is there a way to set up the column without imposing a limit? And if so, how bad is this in terms of security?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: setting up mysql database name
by diotalevi (Canon) on Dec 09, 2005 at 20:17 UTC | |
by coldfingertips (Pilgrim) on Dec 09, 2005 at 20:18 UTC | |
by diotalevi (Canon) on Dec 09, 2005 at 20:22 UTC | |
by Fletch (Bishop) on Dec 09, 2005 at 20:51 UTC | |
|
Re: setting up mysql database name
by jZed (Prior) on Dec 09, 2005 at 21:00 UTC |