9 个解决方案
#1
不能指定行数。
直能全表导出。或者加一些where 条件。
直能全表导出。或者加一些where 条件。
#2
加where条件导出,手动命令方式如何做呢?
#3
手册中有例子。
#5
使用mysqldump出错:
$ mysqldump -h'192.168.1.21' -P3230 -u'un' -p'up' --where="id='1645519'" ud ut > s_d.txt
mysqldump: Error: 'Access denied for user 'ud'@'%' to database 'INFORMATION_SCHEMA'' when trying to dump tablespaces
这个问题是没有权限吗?要怎样授权?
#6
GRANT priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
TO user [IDENTIFIED BY [PASSWORD] 'password']
[, user [IDENTIFIED BY [PASSWORD] 'password']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher' [AND]]
[ISSUER 'issuer' [AND]]
[SUBJECT 'subject']]
[WITH with_option [with_option] ...]
object_type =
TABLE
| FUNCTION
| PROCEDURE
with_option =
GRANT OPTION
| MAX_QUERIES_PER_HOUR count
| MAX_UPDATES_PER_HOUR count
| MAX_CONNECTIONS_PER_HOUR count
| MAX_USER_CONNECTIONS count
REVOKE priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
FROM user [, user] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
TO user [IDENTIFIED BY [PASSWORD] 'password']
[, user [IDENTIFIED BY [PASSWORD] 'password']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher' [AND]]
[ISSUER 'issuer' [AND]]
[SUBJECT 'subject']]
[WITH with_option [with_option] ...]
object_type =
TABLE
| FUNCTION
| PROCEDURE
with_option =
GRANT OPTION
| MAX_QUERIES_PER_HOUR count
| MAX_UPDATES_PER_HOUR count
| MAX_CONNECTIONS_PER_HOUR count
| MAX_USER_CONNECTIONS count
REVOKE priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
FROM user [, user] ...
#7
大哥,我是问上面mysqldump错误是不是,如果是,需要哪个权限。不是不知道grant语法,是不知道mysqldump所需的权限怎么拼写。
#8
错误提示说明,你的 'ud'@'% 没有访问数据字典的功能。
用MYSQL命令行登录一下,然后 show grants; 看一下你都有些什么权限。
#9
mysql4的服务器,里面没有INFORMATION_SCHEMA库,那么不能使用条件导出了吧?
#1
不能指定行数。
直能全表导出。或者加一些where 条件。
直能全表导出。或者加一些where 条件。
#2
加where条件导出,手动命令方式如何做呢?
#3
手册中有例子。
#4
#5
使用mysqldump出错:
$ mysqldump -h'192.168.1.21' -P3230 -u'un' -p'up' --where="id='1645519'" ud ut > s_d.txt
mysqldump: Error: 'Access denied for user 'ud'@'%' to database 'INFORMATION_SCHEMA'' when trying to dump tablespaces
这个问题是没有权限吗?要怎样授权?
#6
GRANT priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
TO user [IDENTIFIED BY [PASSWORD] 'password']
[, user [IDENTIFIED BY [PASSWORD] 'password']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher' [AND]]
[ISSUER 'issuer' [AND]]
[SUBJECT 'subject']]
[WITH with_option [with_option] ...]
object_type =
TABLE
| FUNCTION
| PROCEDURE
with_option =
GRANT OPTION
| MAX_QUERIES_PER_HOUR count
| MAX_UPDATES_PER_HOUR count
| MAX_CONNECTIONS_PER_HOUR count
| MAX_USER_CONNECTIONS count
REVOKE priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
FROM user [, user] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
TO user [IDENTIFIED BY [PASSWORD] 'password']
[, user [IDENTIFIED BY [PASSWORD] 'password']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher' [AND]]
[ISSUER 'issuer' [AND]]
[SUBJECT 'subject']]
[WITH with_option [with_option] ...]
object_type =
TABLE
| FUNCTION
| PROCEDURE
with_option =
GRANT OPTION
| MAX_QUERIES_PER_HOUR count
| MAX_UPDATES_PER_HOUR count
| MAX_CONNECTIONS_PER_HOUR count
| MAX_USER_CONNECTIONS count
REVOKE priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON [object_type] {tbl_name | * | *.* | db_name.*}
FROM user [, user] ...
#7
大哥,我是问上面mysqldump错误是不是,如果是,需要哪个权限。不是不知道grant语法,是不知道mysqldump所需的权限怎么拼写。
#8
错误提示说明,你的 'ud'@'% 没有访问数据字典的功能。
用MYSQL命令行登录一下,然后 show grants; 看一下你都有些什么权限。
#9
mysql4的服务器,里面没有INFORMATION_SCHEMA库,那么不能使用条件导出了吧?