FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » phpmyadmin export
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
phpmyadmin export [message #179477] Thu, 01 November 2012 04:04 Go to next message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma: 0
Member
I cannot find a way of exporting (except as SQL) a mysql table that
includes all the comments that I have added to each field in the table
using phpmyadmin.

Any ideas?

Richard Yates
Re: phpmyadmin export [message #179478 is a reply to message #179477] Thu, 01 November 2012 05:37 Go to previous messageGo to next message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma: 0
Member
In article <g1t398hmljqrkvr1htkgbartoaq03tpql9(at)4ax(dot)com>,
Richard Yates <richard(at)yatesguitar(dot)com> wrote:

> I cannot find a way of exporting (except as SQL) a mysql table that
> includes all the comments that I have added to each field in the table
> using phpmyadmin.
>
> Any ideas?
>
> Richard Yates

AFAIK, phpmyadmin uses mysqladmin to extract the tables from MySQL. You
might look at a good MySQL manual and learn how to do it by hand rather
than relying on phpmysql. It require you to change the internal
mysqladmin command to include comments, if such an option exists.

--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]
Re: phpmyadmin export [message #179479 is a reply to message #179478] Thu, 01 November 2012 10:17 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 01/11/12 05:37, Michael Vilain wrote:
> In article <g1t398hmljqrkvr1htkgbartoaq03tpql9(at)4ax(dot)com>,
> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>
>> I cannot find a way of exporting (except as SQL) a mysql table that
>> includes all the comments that I have added to each field in the table
>> using phpmyadmin.
>>
>> Any ideas?
>>
>> Richard Yates
>
> AFAIK, phpmyadmin uses mysqladmin to extract the tables from MySQL. You
> might look at a good MySQL manual and learn how to do it by hand rather
> than relying on phpmysql. It require you to change the internal
> mysqladmin command to include comments, if such an option exists.
>
I think it does..it (phpmyadmin) probably invokes mysqldump which seems
to take --comments as an argument


--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
Re: phpmyadmin export [message #179480 is a reply to message #179479] Thu, 01 November 2012 13:41 Go to previous messageGo to next message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma: 0
Member
On Thu, 01 Nov 2012 10:17:56 +0000, The Natural Philosopher
<tnp(at)invalid(dot)invalid> wrote:

> On 01/11/12 05:37, Michael Vilain wrote:
>> In article <g1t398hmljqrkvr1htkgbartoaq03tpql9(at)4ax(dot)com>,
>> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>>
>>> I cannot find a way of exporting (except as SQL) a mysql table that
>>> includes all the comments that I have added to each field in the table
>>> using phpmyadmin.
>>>
>>> Any ideas?
>>>
>>> Richard Yates
>>
>> AFAIK, phpmyadmin uses mysqladmin to extract the tables from MySQL. You
>> might look at a good MySQL manual and learn how to do it by hand rather
>> than relying on phpmysql. It require you to change the internal
>> mysqladmin command to include comments, if such an option exists.
>>
> I think it does..it (phpmyadmin) probably invokes mysqldump which seems
> to take --comments as an argument

Thanks. I found the "--comments" switch in the mysql manual, but I do
not know how to run mysqldump (or anything else mysql) except through
phpmyadmin and php scripts. I found this on a tech site:

"If you wish to perform a MySQL dump manually, without using a
PHPMyAdmin tool or other graphic environment, you need to connect to
your database via SSH and run the following command:..."

What is SSH? How do I execute a manual dump with mysqldump without
phpmyadmin?
Re: phpmyadmin export [message #179481 is a reply to message #179480] Thu, 01 November 2012 13:51 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/1/2012 9:41 AM, Richard Yates wrote:
> On Thu, 01 Nov 2012 10:17:56 +0000, The Natural Philosopher
> <tnp(at)invalid(dot)invalid> wrote:
>
>> On 01/11/12 05:37, Michael Vilain wrote:
>>> In article <g1t398hmljqrkvr1htkgbartoaq03tpql9(at)4ax(dot)com>,
>>> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>>>
>>>> I cannot find a way of exporting (except as SQL) a mysql table that
>>>> includes all the comments that I have added to each field in the table
>>>> using phpmyadmin.
>>>>
>>>> Any ideas?
>>>>
>>>> Richard Yates
>>>
>>> AFAIK, phpmyadmin uses mysqladmin to extract the tables from MySQL. You
>>> might look at a good MySQL manual and learn how to do it by hand rather
>>> than relying on phpmysql. It require you to change the internal
>>> mysqladmin command to include comments, if such an option exists.
>>>
>> I think it does..it (phpmyadmin) probably invokes mysqldump which seems
>> to take --comments as an argument
>
> Thanks. I found the "--comments" switch in the mysql manual, but I do
> not know how to run mysqldump (or anything else mysql) except through
> phpmyadmin and php scripts. I found this on a tech site:
>
> "If you wish to perform a MySQL dump manually, without using a
> PHPMyAdmin tool or other graphic environment, you need to connect to
> your database via SSH and run the following command:..."
>
> What is SSH? How do I execute a manual dump with mysqldump without
> phpmyadmin?
>

This isn't a PHP question. Try comp.databases.mysql.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: phpmyadmin export [message #179485 is a reply to message #179480] Thu, 01 November 2012 16:49 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 01/11/12 13:41, Richard Yates wrote:
> On Thu, 01 Nov 2012 10:17:56 +0000, The Natural Philosopher
> <tnp(at)invalid(dot)invalid> wrote:
>
>> On 01/11/12 05:37, Michael Vilain wrote:
>>> In article <g1t398hmljqrkvr1htkgbartoaq03tpql9(at)4ax(dot)com>,
>>> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>>>
>>>> I cannot find a way of exporting (except as SQL) a mysql table that
>>>> includes all the comments that I have added to each field in the table
>>>> using phpmyadmin.
>>>>
>>>> Any ideas?
>>>>
>>>> Richard Yates
>>>
>>> AFAIK, phpmyadmin uses mysqladmin to extract the tables from MySQL. You
>>> might look at a good MySQL manual and learn how to do it by hand rather
>>> than relying on phpmysql. It require you to change the internal
>>> mysqladmin command to include comments, if such an option exists.
>>>
>> I think it does..it (phpmyadmin) probably invokes mysqldump which seems
>> to take --comments as an argument
>
> Thanks. I found the "--comments" switch in the mysql manual, but I do
> not know how to run mysqldump (or anything else mysql) except through
> phpmyadmin and php scripts. I found this on a tech site:
>
> "If you wish to perform a MySQL dump manually, without using a
> PHPMyAdmin tool or other graphic environment, you need to connect to
> your database via SSH and run the following command:..."
>
> What is SSH? How do I execute a manual dump with mysqldump without
> phpmyadmin?
>
Ah. I see. This is a hosted server to which you have very limited access...

hence the dreadful phpadmin.

IF you have a linux machine you just type ssh <my remote server> and
with luck it will accept a connection from you.

http://www.phpmyadmin.net/documentation/#faqexport

"Add into comments" includes column comments, relations, and MIME types
set in the pmadb in the dump as SQL comments (/* xxx */).




--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
Re: phpmyadmin export [message #179487 is a reply to message #179477] Thu, 01 November 2012 18:39 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 01-11-2012 05:04, Richard Yates wrote:
> I cannot find a way of exporting (except as SQL) a mysql table that
> includes all the comments that I have added to each field in the table
> using phpmyadmin.
>
> Any ideas?
>
> Richard Yates
>


When you click 'Export', half way down the screeen, i see:

Format-specific options:

Display comments (includes info such as export timestamp, PHP version,
and server version)

I tested this by selecting this option, and i did see a comment in my
export......


This is in Version information: 3.5.2.2 of phpMyAdmin.
The latest stable version is 3.5.3
Re: phpmyadmin export [message #179488 is a reply to message #179478] Thu, 01 November 2012 20:29 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
Michael Vilain wrote:

> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>> I cannot find a way of exporting (except as SQL) a mysql table that
>> includes all the comments that I have added to each field in the table
>> using phpmyadmin.
>>
>> Any ideas?
>
> AFAIK, phpmyadmin uses mysqladmin to extract the tables from MySQL. […]

That would be surprising since AFAIK phpMyAdmin runs without exec()
permission. Using the functions provided by either the `mysql' or the
`mysqli' PHP extension, both of which phpMyAdmin supports, it is already
possible to extract that information using MySQL statements. And indeed, I
could not find an occurrence of `mysqladmin' in the phpMyAdmin source code,
which is another strong indication that you are mistaken here.


PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
Re: phpmyadmin export [message #179502 is a reply to message #179488] Fri, 02 November 2012 19:04 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 01-11-2012 21:29, Thomas 'PointedEars' Lahn wrote:
> Michael Vilain wrote:
>
>> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>>> I cannot find a way of exporting (except as SQL) a mysql table that
>>> includes all the comments that I have added to each field in the table
>>> using phpmyadmin.
>>>
>>> Any ideas?
>>
>> AFAIK, phpmyadmin uses mysqladmin to extract the tables from MySQL. […]
>
> That would be surprising since AFAIK phpMyAdmin runs without exec()
> permission. Using the functions provided by either the `mysql' or the
> `mysqli' PHP extension, both of which phpMyAdmin supports, it is already
> possible to extract that information using MySQL statements. And indeed, I
> could not find an occurrence of `mysqladmin' in the phpMyAdmin source code,
> which is another strong indication that you are mistaken here.
>
>
> PointedEars
>

A simple:
SHOW CREATE tablename

will show the results, with comments
Re: phpmyadmin export [message #179574 is a reply to message #179487] Fri, 09 November 2012 05:01 Go to previous messageGo to next message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma: 0
Member
On Thu, 01 Nov 2012 19:39:30 +0100, Luuk <luuk(at)invalid(dot)lan> wrote:

> On 01-11-2012 05:04, Richard Yates wrote:
>> I cannot find a way of exporting (except as SQL) a mysql table that
>> includes all the comments that I have added to each field in the table
>> using phpmyadmin.
>>
>> Any ideas?
>>
>> Richard Yates
>>

> When you click 'Export', half way down the screeen, i see:
>
> Format-specific options:
>
> Display comments (includes info such as export timestamp, PHP version,
> and server version)
>
> I tested this by selecting this option, and i did see a comment in my
> export......
>

Right, but that is only for an SQL export. As I asked, I am trying to
get an export with the comments in a format besides SQL.
Re: phpmyadmin export [message #179575 is a reply to message #179574] Fri, 09 November 2012 08:11 Go to previous messageGo to next message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma: 0
Member
In article <oe3p9852lkjutl0jbqo5cgssu8kkmlvdqg(at)4ax(dot)com>,
Richard Yates <richard(at)yatesguitar(dot)com> wrote:

> On Thu, 01 Nov 2012 19:39:30 +0100, Luuk <luuk(at)invalid(dot)lan> wrote:
>
>> On 01-11-2012 05:04, Richard Yates wrote:
>>> I cannot find a way of exporting (except as SQL) a mysql table that
>>> includes all the comments that I have added to each field in the table
>>> using phpmyadmin.
>>>
>>> Any ideas?
>>>
>>> Richard Yates
>>>
>
>> When you click 'Export', half way down the screeen, i see:
>>
>> Format-specific options:
>>
>> Display comments (includes info such as export timestamp, PHP version,
>> and server version)
>>
>> I tested this by selecting this option, and i did see a comment in my
>> export......
>>
>
> Right, but that is only for an SQL export. As I asked, I am trying to
> get an export with the comments in a format besides SQL.

AFAIK, you'd need to write a utility that extracts the SQL and comments,
the strips out the SQL and formats the comments for the output you want.
I didn't get from your original post that you were exporting to
something other than SQL. What other formats do you need? How does
phpmyadmin generate that output (i.e. look at the code)? Is there a way
to change the code generation to include comments?

You'll probably have to roll your own here. Get ready to roll up your
sleeves.

--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]
Re: phpmyadmin export [message #179577 is a reply to message #179574] Fri, 09 November 2012 12:35 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/9/2012 12:01 AM, Richard Yates wrote:
> On Thu, 01 Nov 2012 19:39:30 +0100, Luuk <luuk(at)invalid(dot)lan> wrote:
>
>> On 01-11-2012 05:04, Richard Yates wrote:
>>> I cannot find a way of exporting (except as SQL) a mysql table that
>>> includes all the comments that I have added to each field in the table
>>> using phpmyadmin.
>>>
>>> Any ideas?
>>>
>>> Richard Yates
>>>
>
>> When you click 'Export', half way down the screeen, i see:
>>
>> Format-specific options:
>>
>> Display comments (includes info such as export timestamp, PHP version,
>> and server version)
>>
>> I tested this by selecting this option, and i did see a comment in my
>> export......
>>
>
> Right, but that is only for an SQL export. As I asked, I am trying to
> get an export with the comments in a format besides SQL.
>

As I told you before. This is not a PHP question. Ask in the correct
newsgroup and you have a better chance of getting a good answer.

But some people are just too dense or too stoopid to understand such a
simple concept.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: phpmyadmin export [message #179598 is a reply to message #179575] Mon, 12 November 2012 07:50 Go to previous messageGo to next message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma: 0
Member
In article <vilain-8DC764(dot)00110309112012(at)news(dot)individual(dot)net>,
Michael Vilain <vilain(at)NOspamcop(dot)net> wrote:

> In article <oe3p9852lkjutl0jbqo5cgssu8kkmlvdqg(at)4ax(dot)com>,
> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>
>> On Thu, 01 Nov 2012 19:39:30 +0100, Luuk <luuk(at)invalid(dot)lan> wrote:
>>
>>> On 01-11-2012 05:04, Richard Yates wrote:
>>>> I cannot find a way of exporting (except as SQL) a mysql table that
>>>> includes all the comments that I have added to each field in the table
>>>> using phpmyadmin.
>>>>
>>>> Any ideas?
>>>>
>>>> Richard Yates
>>>>
>>
>>> When you click 'Export', half way down the screeen, i see:
>>>
>>> Format-specific options:
>>>
>>> Display comments (includes info such as export timestamp, PHP version,
>>> and server version)
>>>
>>> I tested this by selecting this option, and i did see a comment in my
>>> export......
>>>
>>
>> Right, but that is only for an SQL export. As I asked, I am trying to
>> get an export with the comments in a format besides SQL.
>
> AFAIK, you'd need to write a utility that extracts the SQL and comments,
> the strips out the SQL and formats the comments for the output you want.
> I didn't get from your original post that you were exporting to
> something other than SQL. What other formats do you need? How does
> phpmyadmin generate that output (i.e. look at the code)? Is there a way
> to change the code generation to include comments?
>
> You'll probably have to roll your own here. Get ready to roll up your
> sleeves.

I looked further into this. SQL is the only format that will
automatically extract comments from MySQL and include them into the
export file. The other formats do individual queries on a per-table
basis and output things like CSV or EXCEL formatted files. So you're
going to have to download a version of phpmyadmin, modify it to query
MySQL for the comment metadata (if that's even possible) and include
that in your format. Or you can output to MySQL and pull the comments
out of the export file and format them for your import.

Either way, you're on your own here.

--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]
Re: phpmyadmin export [message #179606 is a reply to message #179598] Mon, 12 November 2012 19:03 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 12-11-2012 08:50, Michael Vilain wrote:
> In article <vilain-8DC764(dot)00110309112012(at)news(dot)individual(dot)net>,
> Michael Vilain <vilain(at)NOspamcop(dot)net> wrote:
>
>> In article <oe3p9852lkjutl0jbqo5cgssu8kkmlvdqg(at)4ax(dot)com>,
>> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>>
>>> On Thu, 01 Nov 2012 19:39:30 +0100, Luuk <luuk(at)invalid(dot)lan> wrote:
>>>
>>>> On 01-11-2012 05:04, Richard Yates wrote:
>>>> > I cannot find a way of exporting (except as SQL) a mysql table that
>>>> > includes all the comments that I have added to each field in the table
>>>> > using phpmyadmin.
>>>> >
>>>> > Any ideas?
>>>> >
>>>> > Richard Yates
>>>> >
>>>
>>>> When you click 'Export', half way down the screeen, i see:
>>>>
>>>> Format-specific options:
>>>>
>>>> Display comments (includes info such as export timestamp, PHP version,
>>>> and server version)
>>>>
>>>> I tested this by selecting this option, and i did see a comment in my
>>>> export......
>>>>
>>>
>>> Right, but that is only for an SQL export. As I asked, I am trying to
>>> get an export with the comments in a format besides SQL.
>>
>> AFAIK, you'd need to write a utility that extracts the SQL and comments,
>> the strips out the SQL and formats the comments for the output you want.
>> I didn't get from your original post that you were exporting to
>> something other than SQL. What other formats do you need? How does
>> phpmyadmin generate that output (i.e. look at the code)? Is there a way
>> to change the code generation to include comments?
>>
>> You'll probably have to roll your own here. Get ready to roll up your
>> sleeves.
>
> I looked further into this. SQL is the only format that will
> automatically extract comments from MySQL and include them into the
> export file. The other formats do individual queries on a per-table
> basis and output things like CSV or EXCEL formatted files. So you're
> going to have to download a version of phpmyadmin, modify it to query
> MySQL for the comment metadata (if that's even possible) and include
> that in your format. Or you can output to MySQL and pull the comments
> out of the export file and format them for your import.
>
> Either way, you're on your own here.
>

Comments are fields stored in information_schema.columns

There will be NO need to change anything to phpMyAdmin, a simple script
querying this table will be enough.....
Re: phpmyadmin export [message #179611 is a reply to message #179606] Tue, 13 November 2012 08:05 Go to previous messageGo to next message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma: 0
Member
In article <gpt7n9-tii(dot)ln1(at)luuk(dot)invalid(dot)lan>, Luuk <luuk(at)invalid(dot)lan>
wrote:

> On 12-11-2012 08:50, Michael Vilain wrote:
>> In article <vilain-8DC764(dot)00110309112012(at)news(dot)individual(dot)net>,
>> Michael Vilain <vilain(at)NOspamcop(dot)net> wrote:
>>
>>> In article <oe3p9852lkjutl0jbqo5cgssu8kkmlvdqg(at)4ax(dot)com>,
>>> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>>>
>>>> On Thu, 01 Nov 2012 19:39:30 +0100, Luuk <luuk(at)invalid(dot)lan> wrote:
>>>>
>>>> > On 01-11-2012 05:04, Richard Yates wrote:
>>>> >> I cannot find a way of exporting (except as SQL) a mysql table that
>>>> >> includes all the comments that I have added to each field in the table
>>>> >> using phpmyadmin.
>>>> >>
>>>> >> Any ideas?
>>>> >>
>>>> >> Richard Yates
>>>> >>
>>>>
>>>> > When you click 'Export', half way down the screeen, i see:
>>>> >
>>>> > Format-specific options:
>>>> >
>>>> > Display comments (includes info such as export timestamp, PHP version,
>>>> > and server version)
>>>> >
>>>> > I tested this by selecting this option, and i did see a comment in my
>>>> > export......
>>>> >
>>>>
>>>> Right, but that is only for an SQL export. As I asked, I am trying to
>>>> get an export with the comments in a format besides SQL.
>>>
>>> AFAIK, you'd need to write a utility that extracts the SQL and comments,
>>> the strips out the SQL and formats the comments for the output you want.
>>> I didn't get from your original post that you were exporting to
>>> something other than SQL. What other formats do you need? How does
>>> phpmyadmin generate that output (i.e. look at the code)? Is there a way
>>> to change the code generation to include comments?
>>>
>>> You'll probably have to roll your own here. Get ready to roll up your
>>> sleeves.
>>
>> I looked further into this. SQL is the only format that will
>> automatically extract comments from MySQL and include them into the
>> export file. The other formats do individual queries on a per-table
>> basis and output things like CSV or EXCEL formatted files. So you're
>> going to have to download a version of phpmyadmin, modify it to query
>> MySQL for the comment metadata (if that's even possible) and include
>> that in your format. Or you can output to MySQL and pull the comments
>> out of the export file and format them for your import.
>>
>> Either way, you're on your own here.
>>
>
> Comments are fields stored in information_schema.columns
>
> There will be NO need to change anything to phpMyAdmin, a simple script
> querying this table will be enough.....

Assuming the OP can do that query, extract the result, and format it for
each table. If there are 500 tables, seems like writing a script is
what needs to happen, assuming they can do that.

--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]
Re: phpmyadmin export [message #179612 is a reply to message #179611] Tue, 13 November 2012 09:25 Go to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 13.11.2012 09:05, schrieb Michael Vilain:
> In article <gpt7n9-tii(dot)ln1(at)luuk(dot)invalid(dot)lan>, Luuk <luuk(at)invalid(dot)lan>
> wrote:
>
>> On 12-11-2012 08:50, Michael Vilain wrote:
>>> In article <vilain-8DC764(dot)00110309112012(at)news(dot)individual(dot)net>,
>>> Michael Vilain <vilain(at)NOspamcop(dot)net> wrote:
>>>
>>>> In article <oe3p9852lkjutl0jbqo5cgssu8kkmlvdqg(at)4ax(dot)com>,
>>>> Richard Yates <richard(at)yatesguitar(dot)com> wrote:
>>>>
>>>> > On Thu, 01 Nov 2012 19:39:30 +0100, Luuk <luuk(at)invalid(dot)lan> wrote:
>>>> >
>>>> >> On 01-11-2012 05:04, Richard Yates wrote:
>>>> >>> I cannot find a way of exporting (except as SQL) a mysql table that
>>>> >>> includes all the comments that I have added to each field in the table
>>>> >>> using phpmyadmin.
>>>> >>>
>>>> >>> Any ideas?
>>>> >>>
>>>> >>> Richard Yates
>>>> >>>
>>>> >
>>>> >> When you click 'Export', half way down the screeen, i see:
>>>> >>
>>>> >> Format-specific options:
>>>> >>
>>>> >> Display comments (includes info such as export timestamp, PHP version,
>>>> >> and server version)
>>>> >>
>>>> >> I tested this by selecting this option, and i did see a comment in my
>>>> >> export......
>>>> >>
>>>> >
>>>> > Right, but that is only for an SQL export. As I asked, I am trying to
>>>> > get an export with the comments in a format besides SQL.
>>>>
>>>> AFAIK, you'd need to write a utility that extracts the SQL and comments,
>>>> the strips out the SQL and formats the comments for the output you want.
>>>> I didn't get from your original post that you were exporting to
>>>> something other than SQL. What other formats do you need? How does
>>>> phpmyadmin generate that output (i.e. look at the code)? Is there a way
>>>> to change the code generation to include comments?
>>>>
>>>> You'll probably have to roll your own here. Get ready to roll up your
>>>> sleeves.
>>>
--cut--
>>>
>>
>> Comments are fields stored in information_schema.columns
>>
>> There will be NO need to change anything to phpMyAdmin, a simple script
>> querying this table will be enough.....
>
> Assuming the OP can do that query, extract the result, and format it for
> each table. If there are 500 tables, seems like writing a script is
> what needs to happen, assuming they can do that.

To give the OP some ideas: I have a (admin) script that can send any database table
as excel download.

In the database I have some views that can give me all the table, view and function
names together with their comments. I can download it with one click to Excel/OO
Calc. No need for yet another tool set.

My db is postgresql.

/Str.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Message queues not working properly PHP -> C
Next Topic: file_get_contents doesn’t access one URL
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 17:18:54 GMT 2024

Total time taken to generate the page: 0.02711 seconds