Govinda why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29, 2011; 12:15
Govinda
why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Hi Everyone
This should be quick and simple, but after researching on Google quite a bit I am still stumped. I am mostly newbie with: server admin, CLI, MySQL.
I am developing my PHP site locally, and now need to move some new MySQL tables from my local dev setup to the remote testing site. First step for me is just to dump the tables, one at a time.
I successfully login to my local MySQL like so: Govind% /usr/local/mysql/bin/mysql -uroot
but while in this dir (and NOT logged into MySQL): /usr/local/mysql/bin
...then I keep getting this: myTestDumpedTable.sql: Permission denied.
Same result if I do any variation on that (try to dump the whole db, drop the '-p', etc.)
On StackOverflow I asked this question [1], and replies there led me to trying being logged in as root user, and then (the same): mysqldump -uroot -p myDBname myTableName > myTestDumpedTable.sql
produces: sh: mysqldump: command not found
....which is odd because it does produce a zero-KB file named "myTestDumpedTable.sql" in that dir.
So then I try (in Mac OS X Terminal, while logged in as me (not root)): mysqldump -uroot -p myDBname myTableName > ~/myTestDumpedTable.sql
....and again it produces: sh: mysqldump: command not found...
and again a zero-KB file named "myTestDumpedTable.sql", in ~/
I am embarrassed as I am sure this is going to be incredibly simple, or just reveal a gaping (basic) hole in my knowledge. .. but I would appreciate any help ;-)
Thanks -Govinda -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql
Dec 29
Andy Wallace Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29, 2011; 09:22
Andy Wallace
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29
Reindl Harald Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29, 2011; 18:28
Reindl Harald
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29
Govinda Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29, 2011; 13:21
Govinda
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29
Reindl Harald Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 29, 2011; 19:35
Reindl Harald
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 31
Jan Steinman Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 31, 2011; 14:53
Jan Steinman
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 01
Reindl Harald Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 01, 2012; 00:06
Reindl Harald
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 31
Govinda Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Dec 31, 2011; 23:36
Govinda
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 02
Jan Steinman Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 02, 2012; 11:01
Jan Steinman
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 03
Govinda Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 03, 2012; 11:52
Govinda
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 03
Hal?sz S?ndor Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 03, 2012; 22:34
Hal?sz S?ndor
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 04
Govinda Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Jan 04, 2012; 17:09
Govinda
Re: why does basic MySQLdump on db table fail with "Permission denied", or else it creates a zero KB file
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!