MariaDB社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3730|回复: 4
打印 上一主题 下一主题

要疯了 mysql的DB不见了!!!!!高手入内 很诡异

[复制链接]
跳转到指定楼层
1#
发表于 2010-8-30 22:33:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[root@mklzabbixmonotor ~]# mysql -u root -port=3306 -h 10.87.0.44 -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
| zabbix             |
+--------------------+
4 rows in set (0.06 sec)
mysql> exit
Bye
[root@mklzabbixmonotor ~]#  mysql -u root -port=3306 -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| test               |
+--------------------+
2 rows in set (0.00 sec)
mysql> exit
Bye
[root@mklzabbixmonotor ~]#


当我加IP登陆 就能看到 zabbix这个数据库 不然就看不到  -----因为监控软件 连部上DB  
DB报错如下

[root@mklzabbixmonotor log]# cat mysqld.log
100823 21:01:14 [Note] /usr/libexec/mysqld: Normal shutdown
100823 21:01:17  InnoDB: Starting shutdown...
100823 21:01:19  InnoDB: Shutdown completed; log sequence number 0 404361395
100823 21:01:19 [Note] /usr/libexec/mysqld: Shutdown complete
100823 21:01:19  mysqld ended
100823 21:01:21  mysqld started
100823 21:01:21 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
100823 21:01:21 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
100823 21:01:22  InnoDB: Started; log sequence number 0 404361395
100823 21:01:22 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.77'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
[root@mklzabbixmonotor log]#
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 顶 踩
2#
发表于 2010-8-31 11:46:59 | 只看该作者
用户权限问题
select host,user,password from mysql.user;
检查下权限是否有问题。
3#
发表于 2010-9-8 15:11:57 | 只看该作者
这问题还问。。
4#
发表于 2010-9-21 18:06:12 | 只看该作者
'root'@'10.87.0.44'对库 zabbix是否有Show_db_priv权限?
select user,host,Show_db_priv from mysql.user;
5#
发表于 2011-4-12 15:53:47 | 只看该作者
你可以查看mysql.host和mysql.db这两个表
或者用下面的语句查看
mysql>show grants for root;
mysql>show grants for root@localhost;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|MariaDB社区 ( 京ICP备07012489号    |
业务联系: QQ:48474881; 邮箱: 48474881@qq.com; 电话:13911732319
声明:本站部分文章是网友转载,若未经作者同意或署名有误,请联系网站管理员。

GMT+8, 2024-9-20 05:32 , Processed in 0.075569 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表