3Mycat分布式架构-环境准备(mycat安装)
mycat软件下载地址:
链接:https://pan.baidu.com/s/1Vp1oaE4YJGq-BAfUExW-7g
提取码:abcd
1预先安装java运行环境
[root@db01 ~]# yum install -y java
2安装mycat并执行启动测试
[root@db01 ~]# cd /server/tools
[root@db01 tools]# rz
[root@db01 tools]# cp Mycat-server-1.6.5-release-20180122220033-linux.tar.gz /application
[root@db01 tools]# cd /application
[root@db01 application]# tar xf Mycat-server-1.6.5-release-20180122220033-linux.tar.gz
[root@db01 application]# ls
mycat Mycat-server-1.6.5-release-20180122220033-linux.tar.gz mysql
[root@db01 application]# cd mycat
[root@db01 mycat]# pwd
/application/mycat
[root@db01 mycat]# vim /etc/profile #设置环境变量
[root@db01 mycat]# tail -n -1 /etc/profile
export PATH=/application/mycat/bin:$PATH
[root@db01 mycat]# source /etc/profile #使环境变量生效
[root@db01 mycat]# mycat start
Starting Mycat-server...
[root@db01 mycat]# mysql -uroot -p123456 -h 127.0.0.1 -P8066
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.29-mycat-1.6.5-release-20180122220033 MyCat Server (OpenCloundDB)
Copyright (c) 2000, 2019, 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>

浙公网安备 33010602011771号