返回顶部
首页 > 资讯 > 数据库 >mysql如何通过二进制包安装及卸载
  • 614
分享到

mysql如何通过二进制包安装及卸载

2024-04-02 19:04:59 614人浏览 安东尼
摘要

这篇文章主要为大家展示了“Mysql如何通过二进制包安装及卸载”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“mysql如何通过二进制包安装及卸载”这篇文章吧。

这篇文章主要为大家展示了“Mysql如何通过二进制包安装及卸载”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“mysql如何通过二进制包安装及卸载”这篇文章吧。

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

以上是“mysql如何通过二进制包安装及卸载”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注编程网数据库频道!

您可能感兴趣的文档:

--结束END--

本文标题: mysql如何通过二进制包安装及卸载

本文链接: https://lsjlt.com/news/65140.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
  • mysql如何通过二进制包安装及卸载
    这篇文章主要为大家展示了“mysql如何通过二进制包安装及卸载”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“mysql如何通过二进制包安装及卸载”这篇文章吧。 ...
    99+
    2024-04-02
  • 如何通过rpm包安装、配置及卸载mysql
    这篇文章主要讲解了“如何通过rpm包安装、配置及卸载mysql”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“如何通过rpm包安装、配置及卸载mysql”吧!以MySQL-server-4.0...
    99+
    2023-06-13
  • 如何安装MySQL二进制包
    本篇内容介绍了“如何安装MySQL二进制包”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!一、安装说明本文使...
    99+
    2024-04-02
  • Percona MySQL 5.7 Linux如何通用二进制包安装
    小编给大家分享一下Percona MySQL 5.7 Linux如何通用二进制包安装,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧...
    99+
    2024-04-02
  • 通过 MySQL 8.0 二进制安装包部署多实例
    解压安装包 cd /usr/local tar xvf mysql-8.0.12-linux-glibc2.12-x86_64.tar.xz mv mysql-8.0.12-linux-glibc2.12-...
    99+
    2024-04-02
  • Mysql二进制包安装
    安装环境 OS:RHEL 6.5_X64 Mysql:mysql-5.7.16-linux-glibc2.5-x86_64.tar.gz 1、确认是否已经安装了依赖包 [root@dbrac16 ~]# ...
    99+
    2024-04-02
  • Linux下通用二进制安装包安装MySQL-5.6.37
    记录下在CentOS 6.9环境安装MySQL 5.6.37的过程,供大家参考。如果centos7以上的系统:需要卸载  rpm -e mariadb-libs-5.5.52-1.el7.x86_...
    99+
    2024-04-02
  • Linux下通用二进制安装包安装MySQL-5.7.17
    解压拷贝mv mysql-5.7.14-linux-glibc2.5-i686 /usr/local/mysql先创建mysql用户groupadd mysql useradd...
    99+
    2024-04-02
  • Mysql二进制安装过程
    Msyql介绍        MySQL是一个关系型数据库管理系统,由瑞典的MySQl AB公司开发,目前属于Oracle旗下公司。My...
    99+
    2024-04-02
  • 如何使用二进制包来安装MySQL
    这篇文章主要介绍“如何使用二进制包来安装MySQL”,在日常操作中,相信很多人在如何使用二进制包来安装MySQL问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”如何使用二进制包...
    99+
    2024-04-02
  • 如何完全卸载linux下通过rpm安装的mysql
    卸载linux下通过rpm安装的mysql 1.关闭MySQL服务2.使用 rpm 命令的方式查看已安装的mysql3. 使用rpm -ev 命令移除安装4. 查询是否还存在遗漏文件5. 删除...
    99+
    2023-10-11
    linux mysql 服务器
  • SuSE11如何通过单实例二进制安装MySQL5.6.41
    本文主要给大家介绍SuSE11如何通过单实例二进制安装MySQL5.6.41,文章内容都是笔者用心摘选和编辑的,具有一定的针对性,对大家的参考意义还是比较大的,下面跟笔者一起了解下SuSE11如何通过单实例...
    99+
    2024-04-02
  • Percona MySQL 5.5 Linux通用二进制包安装(CentOS 6.9)
    创建软件安装目录 mkdir  /mysql_software_55 下载软件 Percona官网的下载页面有两个二进制Tar包,分别对应不同的发行版本 ssl100 - Debian/Ubun...
    99+
    2024-04-02
  • 二进制包安装mysql数据库
    mysql数据库常见的安装方式(1)              &...
    99+
    2024-04-02
  • 怎么用二进制包安装mysql
    这篇文章主要讲解了“怎么用二进制包安装mysql”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么用二进制包安装mysql”吧!目的本文主要讲述如何使用二进...
    99+
    2024-04-02
  • php7如何安装及卸载
    这篇文章主要介绍php7如何安装及卸载,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!一、安装一个命令搞定:安装php7和apache的php7模块:apt-get install php7.0&n...
    99+
    2023-06-06
  • centos系统如何使用二进制包安装mysql 5.6
    本文主要给大家简单讲讲centos系统如何使用二进制包安装mysql 5.6 ,相关专业术语大家可以上网查查或者找一些相关书籍补充一下,这里就不涉猎了,我们就直奔主题吧,希望centos系统如何使...
    99+
    2024-04-02
  • mysql 8.0安装全过程(linux上二进制包安装,非root用户)
    目录 介绍 安装 0、删除随系统安装的mariadb 1、下载 2、解压 3、创建用户 4、创建数据目录 5、核心启动配置文件 6、安装依赖 7、初始化mysql文件 8、启动服务 9、配置环境变量 10、改root登录密码 可能遇到错误...
    99+
    2023-09-14
    mysql
  • MySQL下载安装及完美卸载的详细过程
    目录1.MySQL的安装2.MySQL的启动与停止3.客户端连接4.MySQL完美卸载结束语1.MySQL的安装 (1)双击我们去官网下载好的MySQL (2) 一直点下一步,直到...
    99+
    2022-11-13
    mysql安装教程 mysql卸载服务 mysql完全卸载教程
  • Linux下二进制源码包安装mysql的详细过程
    这篇文章主要介绍“Linux下二进制源码包安装mysql的详细过程 ”,在日常操作中,相信很多人在Linux下二进制源码包安装mysql的详细过程 问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Linux下二...
    99+
    2023-06-13
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作