Chinaunix首页 | 论坛 | 博客
  • 博客访问: 740950
  • 博文数量: 95
  • 博客积分: 1754
  • 博客等级: 上尉
  • 技术积分: 1607
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-12 10:06
文章分类

全部博文(95)

文章存档

2015年(3)

2013年(15)

2012年(77)

分类: Mysql/postgreSQL

2015-03-10 22:40:42

我们用status或者mysqladmin -V查看mysql版本,如果需要查看编译参数那么就要用到mysqlbug了.下面演示一下

演示版本:mysql5.6.15

[mysql@localhost ~]$ mysqlbug 
Finding system information for a MySQL bug report
test -x 
Could not find a text editor. (tried emacs)
You can change editor by setting the environment variable VISUAL.
If your shell is a bourne shell (sh) do
VISUAL=your_editors_name; export VISUAL
If your shell is a C shell (csh) do
setenv VISUAL your_editors_name

默认执行会报错,需要显示指定VISUAL=your_editors_name; export VISUAL

[mysql@localhost ~]$ VISUAL=vim; export VISUAL

继续执行mysqlbug看结果

[mysql@localhost ~]$ mysqlbug 
Finding system information for a MySQL bug report
test -x /usr/bin/vim
Using editor /usr/bin/vim
You can change editor by setting the environment variable VISUAL.
If your shell is a bourne shell (sh) do
VISUAL=your_editors_name; export VISUAL
If your shell is a C shell (csh) do
setenv VISUAL your_editors_name

SEND-PR: -*- send-pr -*-
SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
SEND-PR: will all comments (text enclosed in `<' and `>').
SEND-PR:
From: mysql
To: mysql@lists.mysql.com
Subject: [50 character or so descriptive subject here (for reference)]

>Description:
       
>How-To-Repeat:
       
>Fix:
       

>Submitter-Id:  
>Originator:    mysql
>Organization:
 
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:      
>Severity:      <[ non-critical | serious | critical ] (one line)>
>Priority:      <[ low | medium | high ] (one line)>
>Category:      mysql
>Class:         <[ sw-bug | doc-bug | change-request | support ] (one line)>
>Release:       mysql-5.6.15 (Source distribution)
>Server: /usr/local/mysql/bin/mysqladmin  Ver 8.42 Distrib 5.6.15, for Linux on x86_64
Copyright (c) 2000, 2013, 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.15-log
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /tmp/mysql.sock
Uptime:                 25 min 21 sec

Threads: 7  Questions: 6  Slow queries: 0  Opens: 70  Flush tables: 1  Open tables: 63  Queries per second avg: 0.003
>C compiler:    gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

>C++ compiler:  c++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

>Environment:
       
System: Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Architecture: x86_64

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-share
d --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,ob
jc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode
 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux

OK、这次没问题了.^_^
阅读(5217) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~