Re: Excluding MySQL database tables from mysqldump

2014-04-08 Thread hsv
 2014/04/07 08:02 -0800, Tim Johnson 
  2)mysqldump forces all database names to lower case in the CREATE
  DATABASE statement. I know, one shouldn't use upper case in
  database names, but :) tell that to my clients. 

Why not? That is not mentioned in the section devoted to mapping such names to 
the file-system.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Excluding MySQL database tables from mysqldump

2014-04-08 Thread Tim Johnson
* h...@tbbs.net h...@tbbs.net [140407 23:09]:
  2014/04/07 08:02 -0800, Tim Johnson 
   2)mysqldump forces all database names to lower case in the CREATE
   DATABASE statement. I know, one shouldn't use upper case in
   database names, but :) tell that to my clients. 
 
 Why not? That is not mentioned in the section devoted to mapping such names 
 to the file-system.
  I found 'official' documentation here regarding Mac OS X:
  https://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html

  I had also found some reference to this having been a side effect
  of migrating files from older macs (of which I am not familiar)
  filesystems. 

  I don't find any reference in the mysqldump documentation at
  https://dev.mysql.com/doc/refman/5.1/en/mysqldump.html to any
  mechanism for overriding this.

  The incompatibility kicks in when trying to restore the databases
  on linux - and I presume FreeBSD, sun OS and other posix systems
  would show the same problem.

  Live and learn ...
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Excluding MySQL database tables from mysqldump

2014-04-07 Thread shawn l.green

Hello Tim,

On 4/4/2014 10:27 PM, Tim Johnson wrote:

* Tim Johnson t...@akwebsoft.com [140404 17:46]:

Currently I'm running mysql on a Mac OSX partition.

I have installed an ubuntu dual-booted partition and put mysql on
it. I have already set up a mysql user on the ubuntu OS.

In the past I have used mysqldump with just the --all-databases
option to transfer data across different linux partitions.

I'm wondering if I should explicitly exclude some of the tables from
the mysql database. If so, which? perhaps mysql.user?

thoughts? Opinions?
thanks

   I should add the following:

   1)the only user added to the new partition is the same as the
   primary non-root user on the Mac partition. Same credentials

   2)this is a workstation - it is closed to the outside world.

   FYI: ...



There are several ways to select which data you want in the backup. You 
can backup per-table, per-database, object type per database (routines, 
triggers), or global objects (events). What level of detail you want to 
copy from your old instance into your new instance is completely up to you.


--
Shawn Green
MySQL Senior Principal Technical Support Engineer
Oracle USA, Inc. - Hardware and Software, Engineered to Work Together.
Office: Blountville, TN

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Excluding MySQL database tables from mysqldump

2014-04-07 Thread Tim Johnson
* shawn l.green shawn.l.gr...@oracle.com [140407 07:05]:
 Hello Tim,
 
 On 4/4/2014 10:27 PM, Tim Johnson wrote:
 * Tim Johnson t...@akwebsoft.com [140404 17:46]:
 Currently I'm running mysql on a Mac OSX partition.
 
 I have installed an ubuntu dual-booted partition and put mysql on
 it. I have already set up a mysql user on the ubuntu OS.
 
 In the past I have used mysqldump with just the --all-databases
 option to transfer data across different linux partitions.
 
 I'm wondering if I should explicitly exclude some of the tables from
 the mysql database. If so, which? perhaps mysql.user?
 
 thoughts? Opinions?
 thanks
I should add the following:
 
1)the only user added to the new partition is the same as the
primary non-root user on the Mac partition. Same credentials
 
2)this is a workstation - it is closed to the outside world.
 
FYI: ...
 
 
 There are several ways to select which data you want in the backup. You 
 can backup per-table, per-database, object type per database (routines, 
 triggers), or global objects (events). What level of detail you want to 
 copy from your old instance into your new instance is completely up to you.

  I've run into other problems, such as a 

  1)running mysqldump exactly as I would have in linux and not
  getting all databases. Dunno why, but keep on reading.

  2)mysqldump forces all database names to lower case in the CREATE
  DATABASE statement. I know, one shouldn't use upper case in
  database names, but :) tell that to my clients.

  It turns out '2)' is a known problem in Mac, but I just didn't
  know it...

  My workaround was to write a python app that uses the MySQLdb
  module to get the name of all databases, iterate through the list
  and selectively operate on them, and ensure that proper case is
  used in the CREATE DATABASE command..

  So I'm good here, I think.
  Thanks much for the reply.

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Excluding MySQL database tables from mysqldump

2014-04-04 Thread Tim Johnson
Currently I'm running mysql on a Mac OSX partition. 

I have installed an ubuntu dual-booted partition and put mysql on
it. I have already set up a mysql user on the ubuntu OS. 

In the past I have used mysqldump with just the --all-databases
option to transfer data across different linux partitions.

I'm wondering if I should explicitly exclude some of the tables from
the mysql database. If so, which? perhaps mysql.user?

thoughts? Opinions?
thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Excluding MySQL database tables from mysqldump

2014-04-04 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [140404 17:46]:
 Currently I'm running mysql on a Mac OSX partition. 
 
 I have installed an ubuntu dual-booted partition and put mysql on
 it. I have already set up a mysql user on the ubuntu OS. 
 
 In the past I have used mysqldump with just the --all-databases
 option to transfer data across different linux partitions.
 
 I'm wondering if I should explicitly exclude some of the tables from
 the mysql database. If so, which? perhaps mysql.user?
 
 thoughts? Opinions?
 thanks
  I should add the following:

  1)the only user added to the new partition is the same as the
  primary non-root user on the Mac partition. Same credentials

  2)this is a workstation - it is closed to the outside world.

  FYI: ...
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql