Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ To install MySQL 5.6 binary packages under CentOS 6.4 64bit     - SVN hook code set to synchronize Web directory (Server)

- RabbitMQ installation, configuration, monitoring (Linux)

- Linux Mint 17.2 64 bit installation Docker and management software seagull (Linux)

- C / C ++ language usage summary of const (Programming)

- CentOS of NFS (Server)

- Linux file content inspection - cat, tac, no, more, less, head, tail, od (Linux)

- The sublime into IDE (Linux)

- GDB remote connections RX Probe online debug program (Programming)

- Linux AS4 VPN server in conjunction with a firewall perfect (Linux)

- Linux, see picture not resolve the problem (Linux)

- Graphing tool: Gnuplot (Linux)

- To batch create users under Linux (Linux)

- Teach you how to protect the security of Linux desktop (Linux)

- How to configure HTTP Strict Transport Security (HSTS) (Linux)

- Redhat 7 can only be read after installation Samba service catalog approach could not be written (Server)

- Laravel 4 Expansion Pack (Server)

- File permissions under Linux (Linux)

- Build Golang development environment configuration on Ubuntu 14.04 (Linux)

- Proper use Core Data multithreaded 3 ways (Programming)

- Ubuntu 14.04 jdk Installation and Configuration (Linux)

 
         
  To install MySQL 5.6 binary packages under CentOS 6.4 64bit
     
  Add Date : 2016-09-26      
         
         
         
  Because you want to install a MySQL under Linux, but with the source package installation is very complicated, I do not like:

1, install the GCC compiler, but when I installed linux is to minimize the use of server installation, so there is no installation GCC

2, the source code needs to be installed to generate ./config makeFile, this negative process is very complicated and have read a lot of configuration documentation.

So the use of binary packages to install.

surroundings:

CentOS64 bit, version 6.4.

mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz 292MB.

When installed, it found less libao package, use

yum install libao

Libao installation package.

Check the hostname in the hosts file if there is, if not please add.

hosts file path: / etc / hosts. Add 127.0.0.1 behind. IPV4's.

Create mysql user groups and users, do not build it, to mysql binary packages after installation, because linux file permissions cause a lot of problems when you start mysql.

groupadd mysql

useradd -r -g mysql mysql

Mysql will be installed to / usr / local / mysql

cd / usr / local

tar zxvf /path/to/mysql-VERSION-OS.tar.gz

After modifying extract the folder named mysql (of course, may be another)

mv mysql-5.6.12-linux-glibc2.5-x86_64 mysql

Creator modify mysql levels of folders and files, and create a group for mysql (note there is a statement later.)

cd mysql

chown -R mysql.

chgrp -R mysql.

In fact, mysql has been installed over, but it needs to be initialized, initialize the mysql table, test table, infomation lists. datadir may be other, but also need to modify the chown under the creator, or may occur permissions problem.

scripts / mysql_install_db --user = mysql --basedir = / usr / local / mysql --datadir = / data / mydb

cp support-files / mysql.server /etc/init.d/mysqld

Copy my-midle.cnf to /etc/my.cnf

vi my.cnf; modify basedir and datadir and character_set_server = utf8, if not, then add three, character_set_server is mysql5.5 set later version mysqld server character set.

These three items are set in mysqld.

service mysqld start

After you log in, set a password and access:

. Grant all on mysql * to 'root' @ 'localhost' identified by 'password';
     
         
         
         
  More:      
 
- How to Install Android Studio on Ubuntu 15.04 / CentOS7 (Linux)
- In Spring AOP example explanation (Programming)
- Comparison of C # and Java (Programming)
- Text analysis tools - awk (Linux)
- Ubuntu cut screen method (Linux)
- C # C ++ Java interface type conversion (Programming)
- MySQL rollback insert statement causes ibd file grows double (Database)
- Install minimize RHEL / CentOS 7 some things need to do (Linux)
- Installation through the network Debian 7 (Wheezy) (Linux)
- Depth understanding of C language (Programming)
- SYN attack hacker attack and defense of the basic principles and prevention technology (Linux)
- Security implementation of disk data protection under Linux (Linux)
- Solve the compatibility problem between Linux and Java at the source in bold font (Linux)
- Nginx Module Development - get user ip (Server)
- RHEL 5.7 Yum configure local source [Errno 2] No such file or directory (Linux)
- RedHat yum configuration and the prompt (Linux)
- Oracle 11g creates virtual private directory RMAN-06004 ORA-00942 error handling (Database)
- Fragment Android developers learning to resolve (Programming)
- OpenGL Superb Learning Notes - Fragment Shader (Programming)
- Compile and install Ubuntu Linux 4.0.5 kernel, network and fix vmware kernel module compilation error (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.