MySQL 管理问题

发布于 2024-11-16 07:02:56 字数 2228 浏览 3 评论 0原文

我们在其中一台服务器上设置了 MySQL 数据库。我们一直使用MySQL Administrator 1.2.12程序来管理服务器上的数据库。该服务器是由不再在组织中工作的人员设置和配置的。

我正在尝试在 MySQL 服务器中创建一个新架构。我以管理员身份登录,当我选择“创建新架构”选项时,我收到一条错误消息:“MySQL 错误号 1044 用户 'Administrator'@'%' 访问数据库 TAtest 被拒绝”

我已运行 SHOW GRANTS 命令并获得以下信息:

'GRANT USAGE ON *.* TO 'Administrator'@'%' IDENTIFIED BY PASSWORD *9C9F3367144B''
'GRANT ALL PRIVILEGES ON `TRACSBACK`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `tmp`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `mysql`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `JMSTEST`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `interlock`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `JMS`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `HADEN`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `empvoting`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `CVCLEANUP`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `i\_schema`.* TO 'Administrator'@'%' WITH GRANT OPTION'

当我查看用户表时,我也不知道这些是否已正确设置......

HOST                       User
%                          Administrator
%                          hbowling
%                          kserna
%                          landrews
%                          root
%                          rtarefeder
10.8.8.107                 root
inftch5.domain.name        hbowling
inftch5.domain.name        root
localhost                  hbowling
localhost                  root
domain.name                hbowling
metroweb.domain.name       root

其中domain.name 是有效的域名。

如果我以管理员、root 或我自己的身份登录,则会收到错误消息并且无法创建新架构。

我尝试下载 MySQL Workbench 5.0.30 OSS Community Edition,据我从网络上的信息来看,它应该连接到我的 MySQL 服务器,但它没有:请参阅 http://www.mysql.com/downloads/workbench/ 说数据库管理(取代 MySQL Administrator,这是我一直在使用的)。然而,当我访问 MySQL Workbench 社区版本的帮助部分时,它说您必须拥有商业版本才能获得服务器连接。

所以有 2 个问题 - 如何让现有的 MySQL 管理员允许我有权访问的用户创建新架构?
是否有免费的 MySQL Workbench 版本允许我像 MySQL 管理员那样连接到我的数据库服务器?

We have a MySQL database that is set up on one of our servers. We have been using the MySQL Administrator 1.2.12 program to manage the databases on the server. This server was set up and configured by a person who is no longer with the organization.

I am trying to create a new schema in the MySQL server. I have logged in as Administrator and when I select the option 'Create new Schema' I get an error message: "MySQL Error Number 1044 Access denied for user 'Administrator'@'%' to database TAtest"

I have run the SHOW GRANTS command and get the following information:

'GRANT USAGE ON *.* TO 'Administrator'@'%' IDENTIFIED BY PASSWORD *9C9F3367144B''
'GRANT ALL PRIVILEGES ON `TRACSBACK`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `tmp`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `mysql`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `JMSTEST`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `interlock`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `JMS`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `HADEN`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `empvoting`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `CVCLEANUP`.* TO 'Administrator'@'%' WITH GRANT OPTION'
'GRANT ALL PRIVILEGES ON `i\_schema`.* TO 'Administrator'@'%' WITH GRANT OPTION'

When I look at the user table I don't know that these were properly set up either....

HOST                       User
%                          Administrator
%                          hbowling
%                          kserna
%                          landrews
%                          root
%                          rtarefeder
10.8.8.107                 root
inftch5.domain.name        hbowling
inftch5.domain.name        root
localhost                  hbowling
localhost                  root
domain.name                hbowling
metroweb.domain.name       root

where domain.name is a valid domain name.

I get the error and can not create a new schema if I am logged in as Administrator, root or myself.

I tried downloading the MySQL Workbench 5.0.30 OSS Community Edition which, as far as I can tell from the information on the web, should connect to my MySQL server, but it doesn't: see http://www.mysql.com/downloads/workbench/ says Database Administration (replacing MySQL Administrator, which is what I have been using). However when I go to the help section of the community version of MySQL Workbench it says you have to have the Commercial version in order to get server connections.

So 2 issues -
How can I get my existing MySQL Administrator to allow a user to which I have access to create a new schema?
Is there a version of the MySQL Workbench that is free that will allow me to connect to my database server the way the MySQL Administrator does?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

恋竹姑娘 2024-11-23 07:02:56

您可以使用 root 创建新数据库。

但是,如果您想使用管理员用户 ID 创建数据库,

则脚本中将无法访问“TAtest”。

提供该数据库的权限,仅 Den 服务器将允许管理员创建数据库/表。
或者
将所有 . 授予由 'pwd' 标识的管理员@'%';
(现在管理员ID可以创建n个数据库)。

You can create the new database using with root .

But if you want to create a database with Administrator user id,

from your script there is no access for the "TAtest".

Provide the privileges for that database , den only server will allow the Administrator to create the database/tables.
OR
GRANT all . to Administrator@'%' identified by 'pwd';
( Now Administrator id can create n num of databases ).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文