當前位置:首頁 » 編程軟體 » mysql55查看編譯的參數

mysql55查看編譯的參數

發布時間: 2023-05-30 07:41:58

1. 某個軟體需要編譯安裝的,如何查看其編譯安裝的一些選項參數

方法如下:鏈培進入安裝該軟體的原代碼目錄,察如運行make uninstall。如果不行,也可以查看一下Makefile文件,主要是看install部分,從其中找出tar格式敗喚啟的文件被復制到了什麼路徑,然後進入相應的目錄進行刪除即可

2. 怎樣用mysql命令行查看show_queries參數我用show status like 'show%';卻提示'empty set'

親,應該是slow_queries??你試試show status like '%queries%'

3. squid 怎麼查看編譯時用的參數

squid 2.5 中,編譯的時候加入如下參陵氏數
--enable-underscore

允許解析的URL中出現下劃渣汪游線,因為默認squid會認為帶下劃線的URL地址是非法的,並拒絕訪問該地址。對於 2.6 版本,編譯時沒有這個參數,這個參數出現在 squid.conf 的配置文檔里,說明是這樣的:

TAG: allow_underscore
# Underscore characters is not strictly allowed in Internet hostnames
# but nevertheless used by many sites. Set this to off if you want
# Squid to be strict about the standard.
# This check is performed only when check_hostnames is set to on.
#
#Default:
# allow_underscore on
如銷默認是 on 所以編譯時不用再加--enable-underscore

4. 用命令行方式操作mysql資料庫,為什麼會出現錯誤。Mysql服務已啟動,伺服器名稱為MySQL55

這個錯誤是無法連接到Mysql資料庫,使用mysql命令進行登陸的參數為:

-h主機地址,如:localhost或者127.0.0.1

-u用戶名,如:root

-p登陸密碼,如果你有設置mysql密碼就填

參數與值之間不需要空格,但是不同參數間有空格,

格式如:>mysql-hlocalhost-uroot-pa12346

mysql命令大全參考:http://wenku..com/view/e5f0ab07e87101f69e3195b0.html

如圖:

5. 如何動態修改Mysql的配置參數

登入mysql:
mysql -h localhost -u root -p
然後會讓輸入密碼

查看當前配置參數(wait_timeout為例):
show session variables like '%wait_timeout%'; (或去掉session也一樣)這是當前會話配置參數

現在我們來改這個值:
set wait_timeout=90;
然後我們一起再查看下當前配置參數:
show variables like '%wait_timeout%';

這是修改當前會話配置,當退出再新起一個會話時就會恢復原樣。

想在所有會話都有效可以設置全局配置,參數把session改為global就可以了
set global wait_timeout=90;後再查看
show global variables like '%wait_timeout%';

再退出後重新進入看看,值還是在。

6. MySQL cmake編譯時這些參數是什麼意思

MySQL cMake 常規參數介紹

-DCMAKE_INSTALL_PREFIX= 指向mysql安裝目錄
-DINSTALL_SBINDIR=sbin 指向可執行文件目錄(prefix/sbin)
-DMYSQL_DATADIR=/var/lib/mysql 指向mysql數據文件目錄(/var/lib/mysql)
-DSYSCONFDIR=/etc/mysql 指向mysql配置文件目錄(/etc/mysql)
-DINSTALL_PLUGINDIR=lib/mysql/plugin 指向插件目錄(prefix/lib/mysql/plugin)
-DINSTALL_MANDIR=share/man 指向man文檔目錄(prefix/share/man)
-DINSTALL_SHAREDIR=share 指向aclocal/mysql.m4安裝目錄(prefix/share)
-DINSTALL_LIBDIR=lib/mysql 指向對象代碼庫目錄(prefix/lib/mysql)
-DINSTALL_INCLUDEDIR=include/mysql 指向頭文件目錄(prefix/include/mysql)
-DINSTALL_INFODIR=share/info 指向info文檔存放目錄(prefix/share/info)
prefix官方推薦設為/usr
類型csv,myisam,myisammrg,heap,innobase,archive,blackhole
若想啟用某個引擎的支持:-DWITH_<ENGINE>_STORAGE_ENGINE=1
如:
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_ARCHIVE_STORAGE_ENGINE=1
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
若想禁用某個引擎的支持:-DWITHOUT_<ENGINE>_STORAGE_ENGINE=1
如:
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
-DWITHOUT_FEDERATED_STORAGE_ENGINE=1
-DWITHOUT_PARTITION_STORAGE_ENGINE=1
-DWITH_READLINE=1 啟用readline庫支持(提供可編輯的命令行)
-DWITH_SSL=system 啟用ssl庫支持(安全套接層)
-DWITH_ZLIB=system 啟用libz庫支持(zib、gzib相關)
-DWTIH_LIBWRAP=0 禁用libwrap庫(實現了通用TCP包裝的功能,為網路服務守護進程使用)
-DMYSQL_TCP_PORT=3306 指定TCP埠為3306
-DMYSQL_UNIX_ADDR=/tmp/mysqld.sock 指定mysql.sock路徑
-DENABLED_LOCAL_INFILE=1 啟用本地數據導入支持
-DEXTRA_CHARSETS=all 啟用額外的字元集類型(默認為all)
-DDEFAULT_CHARSET=utf8 指定默認的字元集為utf8
-DDEFAULT_COLLATION=utf8_general_ci 設定默認排序規則(utf8_general_ci快速/utf8_unicode_ci准確)
-DWITH_EMBEDDED_SERVER=1 編譯嵌入式伺服器支持
-DMYSQL_USER=mysql 指定mysql用戶(默認為mysql)
-DWITH_DEBUG=0 禁用debug(默認為禁用)
-DENABLE_PROFILING=0 禁用Profiling分析(默認為開啟)
-DWITH_COMMENT='string' 一個關於編譯環境的描述性注釋

7. 如何在makefile中增加mysql編譯參數

用QT Creator生成的文件進行編譯時出現錯誤,網上查找說是要修改生成的Makefile文件,在CFLAGS和CXXFLAGS中添加「-fno-rtti」編譯參數。這樣每個Makefile文件都要修改,很麻煩。那麼能不能在生成Makefile時自動加上呢。可以,只需要修改qmake的配置即可!

以下為解決方法(也可供同類問題參考):

1、#sudo gedit Makefile 查看生成的Makefile。在其中找到Makefile: mycom.pro /QT4/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++/qmake.conf 。

這就是要修改的配置文件

2、#sudo gedit /QT4/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++/qmake.conf

找到要修改的項並修改QMAKE_CFLAGS = -fno-rtti -pipe,QMAKE_CXXFLAGS = $$QMAKE_CFLAGS(說明引用QMAKE_CFLAGS)

那麼這就完成修改。保存退出即可。

8. 如何查看mysql可用編譯參數

如何查看mysql可用編譯參數
查看nginx編譯參數:/usr/local/nginx/sbin/nginx -V查看apache編譯參數:cat /usr/local/apache2/build/config.nice查看mysql編譯參數:cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE查看php編譯參數:/usr/local/php/bin/php -i | grep configure

9. windows怎麼查看mysql 編譯

准備工作:
安裝一個編譯器,推薦Microsoft visual studio 2008吧
另外需要裝:

開始編譯:
這里以mysql-5.1.38的源碼編譯為例:
mysql-5.1.38的代碼下載可以到mysql官方網站下載,具體怎麼下載不在說明。

打開一個cmd窗口:
輸入:
cscript //H:CScript
然後:
cd /path/mysql-5.1.38
win\configure WITH_INNOBASE_STORAGE_ENGINE __NT__
win\build-vs9.bat

到此我們將會創建一個mysql.sln的工程文件,如果對想學習代碼的朋友,到此即可以,然後可以用Microsoft visual studio 2008打開這個文件就可以查看相應的代碼了。

如果需要調試或單步執行調試:
這里以mysqld項目為例:
打開項目mysqld 的屬性點擊debugging
在mysqld的屬性頁設置命令參數(Command Arguments)為:–console。這樣就可以用debug方式調試代碼了。

同樣對於其它項目的調試,也是這樣處理,屬性,添加命令行參數:–console。

對於想跟蹤的項目可以執行build,然後可以在mysql-5.1.38/client/Debug下生成相應的執行文件。

10. 如何查看Apache的configure編譯參數

`configure』 configures this package to adapt to many kinds of systems.
`configure』 配置這個包來適合多數系統.
Usage: ./configure [OPTION]… [VAR=VALUE]…譽彎
語法: ./configure [選項]… [變數=值]…
To assign environment variables (e.g., CC, CFLAGS…), specify them as VAR=VALUE. See below for descriptions of some of the useful variables.
配置環境變昌虛遲量(例如,CC,CFLAGS),格式為VAR=VALUE. 看下面對這些可用變數的說明.
Defaults for the options are specified in brackets.
選項的默認值括在方括弧之中.
Configuration:
配置:
-h, –help display this help and exit 顯示這個幫助並退出
–help=short display options specific to this package 顯示這個包的詳細選項
–help=recursive display the short help of all the included packages 顯示所有包括的包的幫助信息
-V, –version display version information and exit 顯示版本信息並退出
-q, –quiet, –silent do not print `checking…』 messages 不列印』檢查』信息
–cache-file=FILE cache test results in FILE [disabled] 存儲測試信息到文件中 [disabled]
-C, –config-cache alias for `–cache-file=config.cache』 `–cache-file=config.cache』的別名
-n, –no-create do not create output files 不生成輸出文件
–srcdir=DIR find the sources in DIR [configure dir or `..'] 在DIR查找代碼

Installation directories:
安裝目錄:
–prefix=PREFIX install architecture-independent files in PREFIX 安裝路徑
[/usr/local/apache2]
–exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 執行文件安裝路徑
[PREFIX]

By default, `make install』 will install all the files in `/usr/local/apache2/bin』, `/usr/local/apache2/lib』 etc. You can specify an installation prefix other than `/usr/local/apache2′ using `–prefix』,for instance `–prefix=$HOME』.
默認情況下,』make install』安裝所有的文件在 `/usr/local/apache2/bin』, `/usr/local/apache2/lib』 等等.你可以指定一個安裝前綴 『–prefix』選項來改變耐李安裝位置,例如 `–prefix=$HOME』.

For better control, use the options below.
更詳細的配置,使用下面的選項.
Fine tuning of the installation directories:
調整安裝目錄的選項:
–bindir=DIR user executables [EPREFIX/bin]
–sbindir=DIR system admin executables [EPREFIX/sbin]
–libexecdir=DIR program executables [EPREFIX/libexec]
–sysconfdir=DIR read-only single-machine data [PREFIX/etc]
–sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
–localstatedir=DIR modifiable single-machine data [PREFIX/var]
–libdir=DIR object code libraries [EPREFIX/lib]
–includedir=DIR C header files [PREFIX/include]
–oldincludedir=DIR C header files for non-gcc [/usr/include]
–datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
–datadir=DIR read-only architecture-independent data [DATAROOTDIR]
–infodir=DIR info documentation [DATAROOTDIR/info]
–localedir=DIR locale-dependent data [DATAROOTDIR/locale]
–mandir=DIR man documentation [DATAROOTDIR/man]
–docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
–htmldir=DIR html documentation [DOCDIR]
–dvidir=DIR dvi documentation [DOCDIR]
–pdfdir=DIR pdf documentation [DOCDIR]
–psdir=DIR ps documentation [DOCDIR]

System types:
系統類型:
–build=BUILD configure for building on BUILD [guessed]
–host=HOST cross-compile to build programs to run on HOST [BUILD]
–target=TARGET configure for building compilers for TARGET [HOST]

Optional Features:
可選的功能:
–disable-FEATURE do not include FEATURE (same as –enable-FEATURE=no)
–enable-FEATURE[=ARG] include FEATURE [ARG=yes]
–enable-layout=LAYOUT
–enable-v4-mapped Allow IPv6 sockets to handle IPv4 connections
–enable-exception-hook Enable fatal exception hook
–enable-maintainer-mode
Turn on debugging and compile time warnings
–enable-pie Build httpd as a Position Independent Executable
–enable-moles=MODULE-LIST
Space-separated list of moles to enable | 「all」 |
「most」
–enable-mods-shared=MODULE-LIST
Space-separated list of shared moles to enable |
「all」 | 「most」
–disable-authn-file file-based authentication control
–enable-authn-dbm DBM-based authentication control
–enable-authn-anon anonymous user authentication control
–enable-authn-dbd SQL-based authentication control
–disable-authn-default authentication backstopper
–enable-authn-alias auth provider alias
–disable-authz-host host-based authorization control
–disable-authz-groupfile
『require group』 authorization control
–disable-authz-user 『require user』 authorization control
–enable-authz-dbm DBM-based authorization control
–enable-authz-owner 『require file-owner』 authorization control
–enable-authnz-ldap LDAP based authentication
–disable-authz-default authorization control backstopper
–disable-auth-basic basic authentication
–enable-auth-digest RFC2617 Digest authentication
–enable-isapi isapi extension support
–enable-file-cache File cache
–enable-cache dynamic file caching
–enable-disk-cache disk caching mole
–enable-mem-cache memory caching mole
–enable-dbd Apache DBD Framework
–enable-bucketeer buckets manipulation filter
–enable-mpio I/O mp filter
–enable-echo ECHO server
–enable-example example and demo mole
–enable-case-filter example uppercase conversion filter
–enable-case-filter-in example uppercase conversion input filter
–enable-ext-filter external filter mole
–disable-include Server Side Includes
–disable-filter Smart Filtering
–disable-charset-lite character set translation
–enable-charset-lite character set translation
–enable-deflate Deflate transfer encoding support
–enable-ldap LDAP caching and connection pooling services
–disable-log-config logging configuration
–enable-log-forensic forensic logging
–enable-logio input and output logging
–disable-env clearing/setting of ENV vars
–enable-mime-magic automagically determining MIME type
–enable-cern-meta CERN-type meta files
–enable-expires Expires header control
–enable-headers HTTP header control
–enable-ident RFC 1413 identity check
–enable-usertrack user-session tracking
–enable-unique-id per-request unique ids
–disable-setenvif basing ENV vars on headers
–enable-version determining httpd version in config files
–enable-proxy Apache proxy mole
–enable-proxy-connect Apache proxy CONNECT mole
–enable-proxy-ftp Apache proxy FTP mole
–enable-proxy-http Apache proxy HTTP mole
–enable-proxy-ajp Apache proxy AJP mole
–enable-proxy-balancer Apache proxy BALANCER mole
–enable-ssl SSL/TLS support (mod_ssl)
–enable-distcache Select distcache support in mod_ssl
–enable-optional-hook-export
example optional hook exporter
–enable-optional-hook-import
example optional hook importer
–enable-optional-fn-import
example optional function importer
–enable-optional-fn-export
example optional function exporter
–enable-static-support Build a statically linked version of the support
binaries
–enable-static-htpasswd
Build a statically linked version of htpasswd
–enable-static-htdigest
Build a statically linked version of htdigest
–enable-static-rotatelogs
Build a statically linked version of rotatelogs
–enable-static-logresolve
Build a statically linked version of logresolve
–enable-static-htdbm Build a statically linked version of htdbm
–enable-static-ab Build a statically linked version of ab
–enable-static-checkgid
Build a statically linked version of checkgid
–enable-static-htcacheclean
Build a statically linked version of htcacheclean
–enable-static-httxt2dbm
Build a statically linked version of httxt2dbm
–enable-http HTTP protocol handling
–disable-mime mapping of file-extension to MIME
–enable-dav WebDAV protocol handling
–disable-status process/thread monitoring
–disable-autoindex directory listing
–disable-asis as-is filetypes
–enable-info server information
–enable-suexec set uid and gid for spawned processes
–disable-cgid CGI scripts
–enable-cgi CGI scripts
–disable-cgi CGI scripts
–enable-cgid CGI scripts
–enable-dav-fs DAV provider for the filesystem
–enable-dav-lock DAV provider for generic locking
–enable-vhost-alias mass virtual hosting mole
–disable-negotiation content negotiation
–disable-dir directory request handling
–enable-imagemap server-side imagemaps
–disable-actions Action triggering on requests
–enable-speling correct common URL misspellings
–disable-userdir mapping of requests to user-specific directories
–disable-alias mapping of requests to different filesystem parts
–enable-rewrite rule based URL manipulation
–enable-so DSO capability

Some influential environment variables:
一些有影響的環境變數:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor

熱點內容
火車軟卧無線密碼是多少 發布:2024-04-19 07:38:59 瀏覽:422
vb系統文件夾 發布:2024-04-19 07:29:58 瀏覽:739
qt怎麼添加文件夾 發布:2024-04-19 07:22:53 瀏覽:255
sql查詢表是否存在 發布:2024-04-19 06:11:48 瀏覽:622
T178Tccftp 發布:2024-04-19 06:11:35 瀏覽:185
電腦遠程訪問自己的伺服器 發布:2024-04-19 00:08:03 瀏覽:96
噸包演算法 發布:2024-04-19 00:02:13 瀏覽:328
win8解壓縮軟體官方下載 發布:2024-04-18 23:52:27 瀏覽:727
手機軟體在哪個文件夾 發布:2024-04-18 23:51:26 瀏覽:373
未加密魔獸地圖 發布:2024-04-18 23:39:13 瀏覽:947