1. 首先准备好二进制安装包

mysql-advanced-5.6.25-linux-glibc2.5-x86_64.tar.gz

2. 进行安装

shell> groupadd mysql

shell> useradd -r -g mysql mysql

shell> cd /usr/local

shell> tar zxvf /usr/local/mysql-advanced-5.6.25-linux-glibc2.5-x86_64.tar.gz

shell> ln -s /usr/local/mysql-advanced-5.6.25-linux-glibc2.5-x86_64.tar.gz /mysql

shell> cd mysql

shell> chown -R mysql .

shell> chgrp -R mysql .

shell> scripts/mysql_install_db --user=mysql  --basedir=/mysql --datadir=/mysql/data

./mysql_install_db --basedir=/mysql --datadir=/mysql/data --user=mysql

Installing MySQL system tables...2015-06-10 11:20:08 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-06-10 11:20:08 0 [Note] /mysql/bin/mysqld (mysqld 5.6.25-enterprise-commercial-advanced) starting as process 4775 ...

2015-06-10 11:20:08 4775 [Note] InnoDB: Using atomics to ref count buffer pool pages

2015-06-10 11:20:08 4775 [Note] InnoDB: The InnoDB memory heap is disabled

2015-06-10 11:20:08 4775 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2015-06-10 11:20:08 4775 [Note] InnoDB: Memory barrier is not used

2015-06-10 11:20:08 4775 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-06-10 11:20:08 4775 [Note] InnoDB: Using Linux native AIO

2015-06-10 11:20:08 4775 [Note] InnoDB: Using CPU crc32 instructions

2015-06-10 11:20:08 4775 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2015-06-10 11:20:08 4775 [Note] InnoDB: Completed initialization of buffer pool

2015-06-10 11:20:08 4775 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2015-06-10 11:20:08 4775 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

2015-06-10 11:20:08 4775 [Note] InnoDB: Database physically writes the file full: wait...

2015-06-10 11:20:08 4775 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

2015-06-10 11:20:08 4775 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

2015-06-10 11:20:08 4775 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

2015-06-10 11:20:08 4775 [Warning] InnoDB: New log files created, LSN=45781

2015-06-10 11:20:08 4775 [Note] InnoDB: Doublewrite buffer not found: creating new

2015-06-10 11:20:08 4775 [Note] InnoDB: Doublewrite buffer created

2015-06-10 11:20:08 4775 [Note] InnoDB: 128 rollback segment(s) are active.

2015-06-10 11:20:08 4775 [Warning] InnoDB: Creating foreign key constraint system tables.

2015-06-10 11:20:08 4775 [Note] InnoDB: Foreign key constraint system tables created

2015-06-10 11:20:08 4775 [Note] InnoDB: Creating tablespace and datafile system tables.

2015-06-10 11:20:08 4775 [Note] InnoDB: Tablespace and datafile system tables created.

2015-06-10 11:20:08 4775 [Note] InnoDB: Waiting for purge to start

2015-06-10 11:20:08 4775 [Note] InnoDB: 5.6.25 started; log sequence number 0

2015-06-10 11:20:08 4775 [Note] RSA private key file not found: /mysql/data//private_key.pem. Some authentication plugins will not work.

2015-06-10 11:20:08 4775 [Note] RSA public key file not found: /mysql/data//public_key.pem. Some authentication plugins will not work.

2015-06-10 11:20:08 4775 [Note] Binlog end

2015-06-10 11:20:08 4775 [Note] InnoDB: FTS optimize thread exiting.

2015-06-10 11:20:08 4775 [Note] InnoDB: Starting shutdown...

2015-06-10 11:20:10 4775 [Note] InnoDB: Shutdown completed; log sequence number 1625977

OK

Filling help tables...2015-06-10 11:20:10 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-06-10 11:20:10 0 [Note] /mysql/bin/mysqld (mysqld 5.6.25-enterprise-commercial-advanced) starting as process 4798 ...

2015-06-10 11:20:10 4798 [Note] InnoDB: Using atomics to ref count buffer pool pages

2015-06-10 11:20:10 4798 [Note] InnoDB: The InnoDB memory heap is disabled

2015-06-10 11:20:10 4798 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2015-06-10 11:20:10 4798 [Note] InnoDB: Memory barrier is not used

2015-06-10 11:20:10 4798 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-06-10 11:20:10 4798 [Note] InnoDB: Using Linux native AIO

2015-06-10 11:20:10 4798 [Note] InnoDB: Using CPU crc32 instructions

2015-06-10 11:20:10 4798 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2015-06-10 11:20:10 4798 [Note] InnoDB: Completed initialization of buffer pool

2015-06-10 11:20:10 4798 [Note] InnoDB: Highest supported file format is Barracuda.

2015-06-10 11:20:10 4798 [Note] InnoDB: 128 rollback segment(s) are active.

2015-06-10 11:20:10 4798 [Note] InnoDB: Waiting for purge to start

2015-06-10 11:20:10 4798 [Note] InnoDB: 5.6.25 started; log sequence number 1625977

2015-06-10 11:20:10 4798 [Note] RSA private key file not found: /mysql/data//private_key.pem. Some authentication plugins will not work.

2015-06-10 11:20:10 4798 [Note] RSA public key file not found: /mysql/data//public_key.pem. Some authentication plugins will not work.

2015-06-10 11:20:10 4798 [Note] Binlog end

2015-06-10 11:20:10 4798 [Note] InnoDB: FTS optimize thread exiting.

2015-06-10 11:20:10 4798 [Note] InnoDB: Starting shutdown...

2015-06-10 11:20:12 4798 [Note] InnoDB: Shutdown completed; log sequence number 1625987

OK

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/mysql/bin/mysqladmin -u root password 'new-password'

/mysql/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:

/mysql/bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default.  This is

strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

cd . ; /mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

cd mysql-test ; perl mysql-test-run.pl

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

New default config file was created as /mysql/my.cnf and

will be used by default by the server when you start it.

You may edit this file to change server settings

shell> chown -R root .

shell> chown -R mysql data

shell> bin/mysqld_safe --user=mysql &

# Next command is optional

shell> cp support-files/mysql.server /etc/init.d/mysql.server

设置root密码

/mysql/bin/mysqladmin -u root password root123

[root@localhost ~]# mysql -uroot -proot123

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 4

Server version: 5.6.25-enterprise-commercial-advanced MySQL Enterprise Server - Advanced Edition (Commercial)

Copyright (c) 2000, 2015, 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> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| mysql              |

| performance_schema |

| test               |

+--------------------+

4 rows in set (0.00 sec)

[root@localhost ~]# mysqladmin shutdown -uroot -proot123

Warning: Using a password on the command line interface can be insecure.

150610 12:29:20 mysqld_safe mysqld from pid file /mysql/data/localhost.localdomain.pid ended

[1]+  Done                    bin/mysqld_safe --user=mysql  (wd: /mysql)

(wd now: ~)

[root@localhost ~]# ps -ef|grep mysql

root       5378   2830  0 12:29 pts/1    00:00:00 grep mysql

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22039464/viewspace-1731503/,如需转载,请注明出处,否则将追究法律责任。

二进制安装的mysql怎么卸载_mysql安装-----二进制包安装及卸载相关推荐

  1. mysql安装包解压后该点哪_mysql解压包安装教程

    1.下载压缩包,地址1(官网下载):https://www.mysql.com/downloads/ 地址2(百度网盘):https://pan.baidu.com/s/12lnpcr3thBe9k- ...

  2. mysql导入源码包_mysql 源码包安装

    1.源码包安装 0)安装依赖 [root@db02 ~]# yum install -y ncurses-devel libaio-devel cmake glibc autoconf gcc-c++ ...

  3. mysql 5.6.23 源码包安装报错_大环境下MySQL5.6源码安装实战一步步教你 CentOS6.5_64bit下编译安装...

    一.关闭防火墙 chkconfig iptables off service iptables stop 二.检查操作系统上是否安装了MySQL [[email protected] backup]# ...

  4. mysql 5.6.23 源码包安装报错_Ubuntu 14.10下编译安装MySQL 5.6.23

    1. 安装环境: Ubuntu Server 14.10 MySQL-5.6.23.tar.gz 2. 安装必备的工具 sudo apt-get install make bison g++ buil ...

  5. python卸载_技术 | Python 包安装和卸载的几种方式

    黑马程序员 微信号:heiniu526 传智播客旗下互联网资讯,学习资源免费分享平台 同学对于python包的安装卸载和简单管理操作并熟练,通过简单介绍集中常用的包管理的方式,让其能够在需要安装第三方 ...

  6. mysql 安装卸载_MySQL(一)——安装、卸载以及基本操作

    安装 如果在安装的过程中缺少依赖:https://www.microsoft.com/zh-cn/download/details.aspx?id=40784 数据库已经安装完成,路径 C:\Prog ...

  7. 非安装版mysql数据库启动不了_非安装版的mysql的启动和卸载

    学习过程中用到数据库,所以也学习一下数据库方面的知识 这里选择的是mysql的免费版本,即MySQL Community Server. 下载的文件,我选择的是不需要安装的版本,即mysql-noin ...

  8. mysql系统服务初始化_MySql服务初始化、安装、启动

    /// ///安装并开启服务/// public static bool InitAndStartService(string serviceName, string mysqliniPath, st ...

  9. mysql源码包多大_MySQL源码包安装

    [root@node2 /]# groupadd -g 27 mysql [root@node2 /]# useradd -u 27 mysql -g mysql -s /sbin/nologin [ ...

  10. mysql 5.6.23 源码包安装报错_CentOS6.5_64bit下编译安装MySQL-5.6.23

    ************************************************************ CentOS6.5_64bit下编译安装MySQL-5.6.23 ****** ...

最新文章

  1. 【STM32 .Net MF开发板学习-25】LED数码管显示
  2. linux c 判断字符串是否是数字
  3. Alluxio 助力 Kubernetes,加速云端深度学习
  4. python 装饰器是啥?
  5. Java8新特性 Optional类
  6. SAP APF tile点击之后,都发生了哪些事情
  7. 前端学习(2556):vue插槽
  8. Feign 超时设置
  9. videojs默认显示controls 按钮功能失效_一文看懂Yearning SQL审核平台功能模块设计...
  10. vue中前进刷新、后退缓存用户浏览数据和浏览位置的实践
  11. 10.软件架构设计:大型网站技术架构与业务架构融合之道 --- 事务一致性
  12. 3dmax java,基于Java 3D与3DS MAX的虚拟校园设计
  13. 轮询机制是什么意思(通俗理解轮询)
  14. SECURITY 03: 邮件服务TLS/SSL 、 总结和答疑 、 CA数字证书服务
  15. Everyone Do this at the Beginning!!--kaggle数据预处理-超详细的解说
  16. php curl返回body,获取CURL中返回的body内容
  17. Response学习
  18. 浙大PAT 1034 Head of aGang
  19. Python 操作Excel(xlrd和xlwt)
  20. Solr Replication

热门文章

  1. 玩转 HMS Core 6.0,详解开发者该知道的黑科技……
  2. @开发者,第二届“马栏山杯”国际音视频算法大赛高分攻略请查收,心动大奖等你来战!...
  3. 当音乐博士开始写代码...
  4. 致敬HarmonyOS不平凡的2020,热情背后还有多少期待
  5. 代码贡献受 Linux 之父亲自点名赞赏,酷派奖励员工 10 万股期权!
  6. 数字智能新时代,IT基础设施,Are you ready?
  7. 漫画:应用程序被拖慢?罪魁祸首是 Log4j!
  8. 酷似美军作战模式的中台战略,究竟是怎么回事? | 大咖说中台
  9. “编程能力差,90%输在了这点上!”阿里巴巴工程师:其实都是瞎努力!
  10. 滴滴辟谣被美团收购;苹果提交认证 9 款新手机;VS Code 1.46 发布 | 极客头条