设为首页 加入收藏

TOP

源码安装MySQL(二)
2019-09-17 18:51:14 】 浏览:101
Tags:源码 安装 MySQL
306/data/* #8.启动mysql ./mysqld_safe --defaults-file=/u01/my3306/my.cnf --user=mysql & #9.配置安全向导 #https://blog.csdn.net/harryxxxxx/article/details/81135222 mysql_secure_installation
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'rootroot' WITH GRANT OPTION;
FLUSH   PRIVILEGES;

6、安装mysql utilities

==最好源码安装==

# wget -c http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-utilities-1.5.3.zip
# unzip mysql-utilities-1.5.3.zip
# cd mysql-utilities-1.5.3
# python ./setup.py build
# python ./setup.py install

二、安装双实例

1、目录结构

#mysql@Fight:~$ tree  /home/mysql/新建脚本文件
.
├── m6
├── m7
├── shutdown3306.sh
├── shutdown3307.sh
├── start3306.sh
└── start3307.sh

#mysql@Fight:/u01$ tree -L 1  根目录 /u01  其中tmp 为空用作安装时的临时目录  mysql程序放在svr
.
├── conf
├── logs
├── mydata
├── mysql-5.7.24
├── mysql-boost-5.7.24.tar.gz
├── svr
└── tmp
#mysql@Fight:/u01/conf$ ls  
mysql
#mysql@Fight:/u01/conf$ cd mysql
#mysql@Fight:/u01/conf/mysql$ tree
.
├── my3306.cnf
└── my3307.cnf
#mysql@Fight:/u01/logs$ tree
.
├── my3306
│   ├── binlog
│   │   ├── binlog.000001
│   │   ├── binlog.000002
│   │   ├── binlog.000003
│   │   ├── binlog.000004
│   │   └── binlog.index
│   ├── error3306.log
│   ├── iblog
│   │   ├── ib_buffer_pool
│   │   ├── ibdata1
│   │   ├── ibdata2
│   │   ├── ib_logfile0
│   │   ├── ib_logfile1
│   │   ├── ib_logfile2
│   │   ├── ib_logfile3
│   │   └── ibtmp1
│   └── slow3306.log
└── my3307
    ├── binlog
    │   ├── mysql-bin.000001
    │   ├── mysql-bin.000002
    │   ├── mysql-bin.000003
    │   ├── mysql-bin.000004
    │   └── mysql-bin.index
    ├── error3307.log
    ├── iblog
    │   ├── ib_buffer_pool
    │   ├── ibdata1
    │   ├── ibdata2
    │   ├── ib_logfile0
    │   ├── ib_logfile1
    │   ├── ib_logfile2
    │   ├── ib_logfile3
    │   └── ibtmp1
    └── slow3307.log
    
#mysql@Fight:/u01/mydata$ tree -L 2
.
├── my3306
│   ├── auto.cnf
│   ├── ca-key.pem
│   ├── ca.pem
│   ├── client-cert.pem
│   ├── client-key.pem
│   ├── mysql
│   ├── mysqld.pid
│   ├── performance_schema
│   ├── private_key.pem
│   ├── public_key.pem
│   ├── server-cert.pem
│   ├── server-key.pem
│   └── sys
└── my3307
    ├── auto.cnf
    ├── ca-key.pem
    ├── ca.pem
    ├── client-cert.pem
    ├── client-key.pem
    ├── mysql
    ├── mysqld.pid
    ├── performance_schema
    ├── private_key.pem
    ├── public_key.pem
    ├── server-cert.pem
    ├── server-key.pem
    └── sys
#mysql@Fight:/u01/svr$ tree -L 2
.
└── mysql5.7
    ├── bin
    ├── COPYING
    ├── COPYING-test
    ├── docs
    ├── include
    ├── lib
    ├── man
    ├── mysql-test
    ├── README
    ├── README-test
    ├── share
    └── support-files
#mysql@Fight:/u01/tmp$ ls
#mysql@Fight:/u01/tmp$ tree

2、脚本语句

  • m6 ./m6
    • mysql --socket=/tmp/mysql3306.sock --port=3306
  • m7 ./m6
    • mysql --socket=/tmp/mysql3307.sock -
首页 上一页 1 2 3 4 5 下一页 尾页 2/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇InnoDB数据页结构 下一篇几个常见的Mysql索引问题

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目