mysql> show events;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'events' at line 1
mysql>
Threads: 1 Questions: 504 Slow queries: 0 Opens: 32 Flush tables: 1 Open tables: 20 Queries per second avg: 0.000
-bash-3.2$
-bash-3.2$ yum list installed | grep "^mysql"
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
mysql.x86_64 5.0.95-5.el5_9 installed
mysql-server.x86_64 5.0.95-5.el5_9 installed
-bash-3.2$ mysqladmin version
mysqladmin Ver 8.41 Distrib 5.0.95, for redhat-linux-gnu on x86_64
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.0.95
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 104 days 3 hours 47 min 7 sec
Switching to different box.
-bash-4.1$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 31
Server version: 5.6.21 MySQL Community Server (GPL)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show events;
ERROR 1046 (3D000): No database selected
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show events;
Empty set (0.00 sec)
mysql>
-bash-4.1$ yum list installed | grep "^mysql"
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
mysql-community-client.x86_64 5.6.21-2.el6 @mysql56-community
mysql-community-common.x86_64 5.6.21-2.el6 @mysql56-community
mysql-community-libs.x86_64 5.6.21-2.el6 @mysql56-community
mysql-community-libs-compat.x86_64 5.6.21-2.el6 @mysql56-community
mysql-community-release.noarch el6-5 installed
mysql-community-server.x86_64 5.6.21-2.el6 @mysql56-community
-bash-4.1$ mysqladmin version
mysqladmin Ver 8.42 Distrib 5.6.21, for Linux on x86_64
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.6.21
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 14 days 22 hours 31 min 19 sec
Threads: 1 Questions: 936 Slow queries: 0 Opens: 87 Flush tables: 1 Open tables: 80 Queries per second avg: 0.000
-bash-4.1$
Events and schedulers were not part of older mysql
No comments:
Post a Comment