MYSQL

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • About mysqldump

    2 answers - 198 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Jrn Dahl-Stamnes schrieb:
    Is it possible to get mysqldump to include rights that has been GRANTED to a
    database or to tables in the database that is being dumped?
    Dump the Grant tables?
  • No.1 | | 682 bytes | |

    6/21/06, Jrn Dahl-Stamnes <sql01 (AT) dahl-stamnes (DOT) netwrote:
    Wednesday 21 June 2006 17:17, Barry wrote:
    Jrn Dahl-Stamnes schrieb:
    Is it possible to get mysqldump to include rights that has been GRANTED
    to a database or to tables in the database that is being dumped?

    Dump the Grant tables?

    I have though of it. Currently I am dumping the mysql database, but there is a
    lot of tables that I probably don't need.

    Based on a dump of the mysql database, I guess that the following tables are
    the one I need to dump:

    mysql.db
    mysql.table_privs
    mysql.user

    Comments?

    Isn't the "hosts" table needed too?!
  • No.2 | | 1402 bytes | |

    Hi,

    Take the dump using which will give you .txt and .sql file.
    Move the dump to the new version of mysql and try using load data infile
    '/tmp/user.txt' into table user;

    Jrn Dahl-Stamnes wrote:

    Thursday 22 June 2006 04:00, Daniel da Veiga wrote:

    >
    >6/21/06, Jrn Dahl-Stamnes <sql01 (AT) dahl-stamnes (DOT) netwrote:
    >
    >>

    Wednesday 21 June 2006 17:17, Barry wrote:

    Jrn Dahl-Stamnes schrieb:

    Is it possible to get mysqldump to include rights that has been
    GRANTED to a database or to tables in the database that is being
    dumped?

    Dump the Grant tables?

    I have though of it. Currently I am dumping the mysql database, but there
    is a lot of tables that I probably don't need.

    Based on a dump of the mysql database, I guess that the following tables
    are the one I need to dump:

    mysql.db
    mysql.table_privs
    mysql.user

    Comments?


    >>Isn't the "hosts" table needed too?!

    >
    >>

    >
    >Maybe, but it is empty on my sql-server.
    >
    >BTW, I'm using an older version of MySQL:

    MySQL dump 10.9

    Host: localhost Database: mysql

    Server version 4.1.8-standard
    --

Re: About mysqldump


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "MYSQL"

EMSDN.COM