[PHP-DB] Re: backing up MySQL

2003-09-10 Thread nabil
use the following script ## #!/bin/sh # Create the temporary copy directory mkdir /tmp/mysql # Get the list of MySQL Databases & copy them for var in `find /var/lib/mysql/ -type d | \ sed -e "s/\/var\/lib\/mysql\///"`; do mysqlhotcopy -q "$var" /tmp/mysql done # Tar/gzip data date=

[PHP-DB] Re: PHP connection to remote Access database on NT

2003-09-10 Thread nabil
Yes , and I done myself to mssql on windows from linux/apache you have to use odbc .. use FreeTDS , it is free and open soured... and work like a charm Nabil "John Almberg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here's a question I hoped I'd never have to ask... > > Is it

Re: [PHP-DB] PHP connection to remote Access database on NT

2003-09-10 Thread James Hughbanks
Yes, it is possible, but you will have to use an odbc connection on the linux box. I have heard of this being done, but never attempted to mysql, go to www.iodbc.org, that is the odbc software for linux, lots of articles on php+apache+odbc there. --James On Wednesday, Sep 10, 2003, at 21:55 Am

Re: [PHP-DB] MYSQL Table Dump

2003-09-10 Thread John Almberg
How about piping the output to a file? As in: mysqldump [OPTIONS] database [tables] >outfile Or using the --tab option? -- John Jeffrey N Dyke wrote: http://www.mysql.com/doc/en/mysqldump.html

[PHP-DB] PHP connection to remote Access database on NT

2003-09-10 Thread John Almberg
Here's a question I hoped I'd never have to ask... Is it possible for PHP, running on a Linux/Apache webserver, to connect to an Access database running on a remote NT box? The NT box is a back office server behind a firewall. In a nutshell, the customer wants his website to be able to record

Re: [PHP-DB] MySQL depreciated mysql_list_* commands: Replacements?

2003-09-10 Thread Micah Stevens
Now that I see code, I would say just run a 'SELECT * FROM table LIMIT 1' on your table, and run it through your code. That should give you what you want. -Micah On Wed September 10 2003 12:55 pm, Peter Beckman wrote: > On Wed, 10 Sep 2003, Micah Stevens wrote: > > describe TBL; > > explain TBL

[PHP-DB] backing up MySQL

2003-09-10 Thread Aleks @ USA.net
Was wondering what are people using to backup their php with MySQL db"s?? Thanks for your time and input.. Aleks.

Re: [PHP-DB] MYSQL Table Dump

2003-09-10 Thread Parker Morse
On Wednesday, Sep 10, 2003, at 16:23 US/Eastern, John Ryan wrote: Is there any way *from the command line* to get a dump of a mysql table and have it saved to a local file, instead of standard output Have a look at "man mysqldump", particularly the "examples" section. If you're already dumping th

RE: [PHP-DB] MYSQL Table Dump

2003-09-10 Thread Jennifer Goodie
> Is there any way *from the command line* to get a dump of a mysql > table and > have it saved to a local file, instead of standard output from running mysqldump --help -r, --result-file=... Direct output to a given file. This option should be used in MSDOS, because it p

[PHP-DB] Re: MYSQL Table Dump

2003-09-10 Thread John Ryan
should have read the manual first, mysqldump "John Ryan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there any way *from the command line* to get a dump of a mysql table and > have it saved to a local file, instead of standard output -- PHP Database Mailing List (http://www.

Re: [PHP-DB] MYSQL Table Dump

2003-09-10 Thread jeffrey_n_Dyke
http://www.mysql.com/doc/en/mysqldump.html "John Ryan"

[PHP-DB] MYSQL Table Dump

2003-09-10 Thread John Ryan
Is there any way *from the command line* to get a dump of a mysql table and have it saved to a local file, instead of standard output -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: MySQL depreciated mysql_list_* commands: Replacements?

2003-09-10 Thread Peter Beckman
On Wed, 10 Sep 2003, Peter Beckman wrote: > Then mysql_list_fields didn't work right. So I submitted a bug > (http://bugs.php.net/bug.php?id=25460) about it, and they said IT TOO was > depreciated, which is fine. But I haven't figured out how to replace > mysql_list_fields with a nice simple SQL

Re: [PHP-DB] MySQL depreciated mysql_list_* commands: Replacements?

2003-09-10 Thread Peter Beckman
On Wed, 10 Sep 2003, Micah Stevens wrote: > describe TBL; > explain TBL; > show columns from TBL; Yes, they do give the correct information. However, my question was is there a nice simple SQL command that will return exactly what mysql_list_fields (now depreciated) so that the $result can

Re: [PHP-DB] MySQL depreciated mysql_list_* commands: Replacements?

2003-09-10 Thread Micah Stevens
You have a couple of choices if I remember correctly.. For a table of name 'TBL': describe TBL; explain TBL; show columns from TBL; -Micah On Wed September 10 2003 12:08 pm, Peter Beckman wrote: > So PHP is saying mysql_list_tables is depreciated. I replaced it with > mysql_query("SHOW TABLE

[PHP-DB] MySQL depreciated mysql_list_* commands: Replacements?

2003-09-10 Thread Peter Beckman
So PHP is saying mysql_list_tables is depreciated. I replaced it with mysql_query("SHOW TABLES FROM DB") and everything is fine. Then mysql_list_fields didn't work right. So I submitted a bug (http://bugs.php.net/bug.php?id=25460) about it, and they said IT TOO was depreciated, which is fine. B

[PHP-DB] Re: foreach() & db brainiacs please help?

2003-09-10 Thread Peter Westergaard
>I have a database full of names. each name could be linked to any number of >sub-names, each sub-name could be linked to any number of sub-sub- names, to >infinity (unlikely but possible). > >I need to iterate through this nest of names starting with a main name; lets >call the main name Peter.

Re: [PHP-DB] Re: PHP Oracle connection across page.

2003-09-10 Thread roy.a.jones
Here is how I do it ... [REF PHP PAGE] . HTMl CODE HERE . ".$instance."\n"; } ?> . HTMl CODE HERE . [conn.php] -- Hope that helps ... Roy A. Jones US Pharma Database Administration GlaxoSmithKline I

[PHP-DB] Re: PHP Oracle connection across page.

2003-09-10 Thread Muhammed Mamedov
eventhough I've never used Oracle with PHP here is my suggestion: create a file that will have your DB connection strings and include it in every PHP file which uses Oracle connection. EXAMPLE: [dbCon.php] file [EMAIL PROTECTED]($o_conn_vars["username"], $o_conn_vars["pa

[PHP-DB] Re: copy tables between db's

2003-09-10 Thread Muhammed Mamedov
What DBMS are you using? ... Oracle, MySQL or what? If MySQL then you don't have to make it manual with PHP code (I mean copy process) .. use something link PhpMyAdmin - there it is very easy to do it. -- Muhammed Mamedov Software Engineer YTM.com.tr "Jeremy" <[EMAIL PROTECTED]> wrote in messa

[PHP-DB] Help on a simple SQL problem

2003-09-10 Thread Muhammed Mamedov
Below I include solutions to your problems. * now I am in Turkey/Istanbul.. I graduated from a University herebut I am,myself, citizen of Turkmenistan Muhammed Mamedov Software Engineer YTM.com.tr - Original Message - From: "Ferry CS" <[EMAIL PROTECTED]> To: "Muhammed Mamedov" <[EMAI