linuxmysql5.6版本的安装配置过程_MySQL
作者:时-_尚微视点 | 来源:互联网 | 2018-04-12 16:34
linuxmysql5.6版本的安装配置过程
bitsCN.com
从今年3月份开始mysql官网开始发布相关的5.6系列的各个版本,对于mysql5.6系列的版本对一起的版本进行了全局性的细节性加强;个人感觉,以下是在虚拟机中配置的mysql5.6.10源码安装的过程分享记录下: [root@mysql5 ~]# groupadd mysql [root@mysql5 ~]# useradd -r -g mysql mysql [root@mysql5 ~]# ls anaconda-ks.cfg install.log install.log.syslog mysql-5.6.10.tar.gz [root@mysql5 ~]# cd /usr/local/ [root@mysql5 local]# ls bin etc games include lib libexec sbin share src [root@mysql5 local]# cp /root/mysql-5.6.10.tar.gz /usr/local/ [root@mysql5 local]# ll total 34468 drwxr-xr-x 2 root root 4096 Jan 27 2010 bin drwxr-xr-x 2 root root 4096 Jan 27 2010 etc drwxr-xr-x 2 root root 4096 Jan 27 2010 games drwxr-xr-x 2 root root 4096 Jan 27 2010 include drwxr-xr-x 2 root root 4096 Jan 27 2010 lib drwxr-xr-x 2 root root 4096 Jan 27 2010 libexec -rw-r--r-- 1 root root 35174149 Apr 17 00:55 mysql-5.6.10.tar.gz drwxr-xr-x 2 root root 4096 Jan 27 2010 sbin drwxr-xr-x 4 root root 4096 Apr 17 00:32 share drwxr-xr-x 2 root root 4096 Jan 27 2010 src [root@mysql5 local]# tar -zxvf mysql-5.6.10.tar.gz [root@mysql5 local]# cd mysql-5.6.10 cmake . make && make install [root@mysql5 mysql-5.6.10]# chown -R mysql.mysql /usr/local/mysql [root@mysql5 mysql-5.6.10]# [root@mysql5 mysql-5.6.10]# cd /usr/local/mysql/scripts/ [root@mysql5 scripts]# ./mysql_install_db --user=mysql --basedir=/usr/local/mys ql --datadir=/usr/local/mysql/data Installing MySQL system tables...2013-04-17 01:26:58 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2013-04-17 01:26:58 18715 [Note] InnoDB: The InnoDB memory heap is disabled 2013-04-17 01:26:58 18715 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation 2013-04-17 01:26:58 18715 [Note] InnoDB: Compressed tables use zlib 1.2.3 2013-04-17 01:26:58 18715 [Note] InnoDB: CPU does not support crc32 instructions 2013-04-17 01:26:58 18715 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2013-04-17 01:26:58 18715 [Note] InnoDB: Completed initialization of buffer pool 2013-04-17 01:26:58 18715 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created! 2013-04-17 01:26:59 18715 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB 2013-04-17 01:26:59 18715 [Note] InnoDB: Database physically writes the file full: wait... 2013-04-17 01:26:59 18715 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB 2013-04-17 01:26:59 18715 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB 2013-04-17 01:26:59 18715 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0 2013-04-17 01:26:59 18715 [Warning] InnoDB: New log files created, LSN=45781 2013-04-17 01:26:59 18715 [Note] InnoDB: Doublewrite buffer not found: creating new 2013-04-17 01:26:59 18715 [Note] InnoDB: Doublewrite buffer created 2013-04-17 01:26:59 18715 [Note] InnoDB: 128 rollback segment(s) are active. 2013-04-17 01:26:59 18715 [Warning] InnoDB: Creating foreign key constraint system tables. 2013-04-17 01:26:59 18715 [Note] InnoDB: Foreign key constraint system tables created 2013-04-17 01:26:59 18715 [Note] InnoDB: Creating tablespace and datafile system tables. 2013-04-17 01:26:59 18715 [Note] InnoDB: Tablespace and datafile system tables created. 2013-04-17 01:26:59 18715 [Note] InnoDB: Waiting for purge to start 2013-04-17 01:26:59 18715 [Note] InnoDB: 1.2.10 started; log sequence number 0 2013-04-17 01:26:59 18715 [Note] Binlog end 2013-04-17 01:26:59 18715 [Note] InnoDB: FTS optimize thread exiting. 2013-04-17 01:26:59 18715 [Note] InnoDB: Starting shutdown... 2013-04-17 01:27:00 18715 [Note] InnoDB: Shutdown completed; log sequence number 1625977 OK Filling help tables...2013-04-17 01:27:00 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2013-04-17 01:27:00 18738 [Note] InnoDB: The InnoDB memory heap is disabled 2013-04-17 01:27:00 18738 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation 2013-04-17 01:27:00 18738 [Note] InnoDB: Compressed tables use zlib 1.2.3 2013-04-17 01:27:00 18738 [Note] InnoDB: CPU does not support crc32 instructions 2013-04-17 01:27:00 18738 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2013-04-17 01:27:00 18738 [Note] InnoDB: Completed initialization of buffer pool 2013-04-17 01:27:00 18738 [Note] InnoDB: Highest supported file format is Barracuda. 2013-04-17 01:27:00 18738 [Note] InnoDB: 128 rollback segment(s) are active. 2013-04-17 01:27:00 18738 [Note] InnoDB: Waiting for purge to start 2013-04-17 01:27:01 18738 [Note] InnoDB: 1.2.10 started; log sequence number 1625977 2013-04-17 01:27:01 18738 [Note] Binlog end 2013-04-17 01:27:01 18738 [Note] InnoDB: FTS optimize thread exiting. 2013-04-17 01:27:01 18738 [Note] InnoDB: Starting shutdown... 2013-04-17 01:27:02 18738 [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: /usr/local/mysql/bin/mysqladmin -u root password 'new-password' /usr/local/mysql/bin/mysqladmin -u root -h mysql5.6 password 'new-password' Alternatively you can run: /usr/local/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 . ; /usr/local/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 with the ./bin/mysqlbug script! 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 /usr/local/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 WARNING: Default config file /etc/my.cnf exists on the system This file will be read by default by the MySQL server If you do not want to use this, either remove it, or use the --defaults-file argument to mysqld_safe when starting the server [root@mysql5 scripts]# [root@mysql5 scripts]# cd /usr/local/mysql/support-files/ [root@mysql5 support-files]# cp mysql.server /etc/rc.d/init.d/mysql [root@mysql5 support-files]# cp my-default.cnf /etc/my.cnf cp: overwrite `/etc/my.cnf'? y [root@mysql5 support-files]# [root@mysql5 support-files]# chkconfig -add mysql -add: unknown option [root@mysql5 support-files]# chkconfig --add mysql [root@mysql5 support-files]# chkconfig mysql on [root@mysql5 support-files]# service mysql start Starting MySQL. [ OK ] [root@mysql5 support-files]# [root@mysql5 data]# mysql -u mysql -p -S /tmp/mysql.sock Enter password: Welcome to the MySQL monitor. Commands end with ; or /g. Your MySQL connection id is 1 Server version: 5.6.10 Source distribution Type 'help;' or '/h' for help. Type '/c' to clear the buffer. mysql> mysql> status; -------------- mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1 Connection id: 1 Current database: Current user: mysql@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server version: 5.6.10 Source distribution Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: latin1 Client characterset: latin1 Conn. characterset: latin1 UNIX socket: /tmp/mysql.sock Uptime: 3 min 38 sec Threads: 1 Questions: 5 Slow queries: 0 Opens: 67 Flush tables: 1 Open tables: 60 Queries per second avg: 0.022 -------------- mysql>bitsCN.com
推荐阅读
腾讯安全平台部正在招聘安全工程师和数据分析工程师。安全工程师负责安全问题和安全事件的跟踪和分析,提供安全测试技术支持;数据分析工程师负责安全产品相关系统数据统计和分析挖掘,通过用户行为数据建模为业务决策提供参考。招聘要求包括熟悉渗透测试和常见安全工具原理,精通Web漏洞,熟练使用多门编程语言等。有相关工作经验和在安全站点发表作品的候选人优先考虑。 ...
[详细]
蜡笔小新 2023-12-10 17:01:40
本文介绍了PHP开发中常用的组合工具和开发所需的工具。对于数据分析软件,包括Excel、hihidata、SPSS、SAS、MARLAB、Eview以及各种BI与报表工具等。同时还介绍了PHP开发所需的PHP MySQL Apache集成环境,包括推荐的AppServ等版本。 ...
[详细]
蜡笔小新 2023-12-09 17:36:44
一、MySQL在Linux下数据库名、表名、列名、别名大小写规则是这样的: 1、数据库名与表名是严格区分大小写的; 2、表的别名是严格区分大小写的& ...
[详细]
蜡笔小新 2023-10-16 20:14:22
本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ...
[详细]
蜡笔小新 2023-12-14 17:15:19
本文介绍了在Hibernate配置lazy=false时无法加载数据的问题,通过采用OpenSessionInView模式和修改数据库服务器版本解决了该问题。详细描述了问题的出现和解决过程,包括运行环境和数据库的配置信息。 ...
[详细]
蜡笔小新 2023-12-14 13:59:45
本文介绍了Metasploit攻击渗透实践的内容和要求,包括主动攻击、针对浏览器和客户端的攻击,以及成功应用辅助模块的实践过程。其中涉及使用Hydra在不知道密码的情况下攻击metsploit2靶机获取密码,以及攻击浏览器中的tomcat服务的具体步骤。同时还讲解了爆破密码的方法和设置攻击目标主机的相关参数。 ...
[详细]
蜡笔小新 2023-12-14 12:14:09
本文介绍了在Linux下安装Perl的步骤,并提供了一个简单的Perl程序示例。同时,还展示了运行该程序的结果。 ...
[详细]
蜡笔小新 2023-12-13 18:29:11
本文介绍了在Mac上搭建php环境后无法使用localhost连接mysql的问题,并通过将localhost替换为127.0.0.1或本机IP解决了该问题。文章解释了localhost和127.0.0.1的区别,指出了使用socket方式连接导致连接失败的原因。此外,还提供了相关链接供读者深入了解。 ...
[详细]
蜡笔小新 2023-12-13 17:48:58
本文介绍了众筹商城与传统商城的区别,包括所售产品和玩法不同以及运营方式不同。同时还提到了php众筹网站的程序源码和方维众筹的安装和环境问题。 ...
[详细]
蜡笔小新 2023-12-12 19:00:31
本文介绍了将mysql从5.6.15升级到5.7.15的详细步骤,包括关闭访问、备份旧库、备份权限、配置文件备份、关闭旧数据库、安装二进制、替换配置文件以及启动新数据库等操作。 ...
[详细]
蜡笔小新 2023-12-12 14:45:04
本文介绍了在CentOS上安装Python2.7.2的详细步骤,包括下载、解压、编译和安装等操作。同时提供了一些注意事项,以及测试安装是否成功的方法。 ...
[详细]
蜡笔小新 2023-12-12 13:54:31
MySQL5.6.40在CentOS764下安装过程 ...
[详细]
蜡笔小新 2023-10-17 11:48:04
本文介绍了在rhel5.5操作系统下搭建网关+LAMP+postfix+dhcp的步骤和配置方法。通过配置dhcp自动分配ip、实现外网访问公司网站、内网收发邮件、内网上网以及SNAT转换等功能。详细介绍了安装dhcp和配置相关文件的步骤,并提供了相关的命令和配置示例。 ...
[详细]
蜡笔小新 2023-12-14 17:13:20
本文介绍了数据库的存储结构及其重要性,强调了关系数据库范例中将逻辑存储与物理存储分开的必要性。通过逻辑结构和物理结构的分离,可以实现对物理存储的重新组织和数据库的迁移,而应用程序不会察觉到任何更改。文章还展示了Oracle数据库的逻辑结构和物理结构,并介绍了表空间的概念和作用。 ...
[详细]
蜡笔小新 2023-12-14 16:00:02
前言对于从事技术的人员来说ajax是这好东西,都会使用,而且乐于使用。但对于新手,开发一个ajax实例,还有是难度的,必竟对于他们这是新东西。leo开发一个简单的ajax实例,用的是 ...
[详细]
蜡笔小新 2023-10-16 17:08:23