您好,登錄后才能下訂單哦!
這篇文章主要為大家展示了“mysql如何安裝route”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“mysql如何安裝route”這篇文章吧。
mysql route
安裝包下載:
http://dev.mysql.com/downloads/router/
文檔:
http://downloads.mysql.com/docs/mysql-router-en.pdf
二進制安裝:
解壓--設(shè)置環(huán)境變量path即可
cat /etc/sample_mysqlrouter.ini
# MySQL Router sample configuration
#
# The following is a sample configuration file which shows
# most of the plugins available and most of their options.
#
# The paths used are defaults and should be adapted based
# on how MySQL Router was installed, for example, using the
# CMake option CMAKE_INSTALL_PREFIX
#
# The logging_folder is kept empty so message go to the
# console.
#
# The fabric_cache plugin only works with the MySQL-RPC
# protocol (by default running on port 32275)
#
#[DEFAULT]
#logging_folder =
#plugin_folder = /usr/local/lib/mysqlrouter
#config_folder = /etc/mysql
#runtime_folder = /var/run
#[logger]
#level = INFO
#[fabric_cache]
#address = your_fabric_node.example.com:32275
#user =
[routing:basic_failover]
# To be more transparent, use MySQL Server port 3306
bind_address=10.10.157.43 --本機的地址
bind_port = 7001 --本機的端口
mode = read-write
destinations = 10.10.224.217:3306 --db的地址及端口
#[routing:homepage_reads_fabric]
#bind_port = 7002
#destinations = fabric+cache:///group/homepage_group?allow_primary_reads=yes
#mode = read-only
# If no plugin is configured which starts a service, keepalive
# will make sure MySQL Router will not immediately exit. It is
# safe to remove once Router is configured.
#[keepalive]
#interval = 60
cd /root/mysql-router-2.0.3-linux-glibc2.12-x86-64bit/bin
mysqlrouter -c /etc/sample_mysqlrouter.ini &
以上是“mysql如何安裝route”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。