centos 6.5 install mysql 5.6
3180 단어 Install
yum install wget
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
Step 2: Now install the downloaded rpm package.
rpm -ivh mysql-community-release-el6-5.noarch.rpm
Step 3: Now install the mysql server by using yum command.Note: The yum command by-default also install the dependencies
yum install mysql-server
Step 4: After installation start the mysql server
/etc/init.d/mysqld start
Other options:
Usage: /etc/init.d/mysqld {start|stop|status|restart|condrestart|try-restart|reload|force-reload}
Step 5: Because the MySQL server is just installed it has blank mysql root password. To reset the mysql root password.
You can use the given below command, and follow the instruction
mysql_secure_installation
You can also use the given below alternate method
Login into mysql server. Because it is freshly installed hence root password is blank
mysql -u root
After login you will get mysql propmt. Run the given commands (remove mysql> if you are doing copy paste these commands)
mysql> use mysql;
mysql> update user set password=PASSWORD("GIVE-NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit
From souce code
# Preconfiguration setup shell> groupadd mysql shell> useradd -r -g mysql mysql # Beginning of source-build specific instructions shell> tar zxvf mysql-VERSION.tar.gz shell> cd mysql-VERSION shell> cmake . shell> make shell> make install # End of source-build specific instructions # Postinstallation setup shell> cd /usr/local/mysql shell> chown -R mysql . shell> chgrp -R mysql . shell> scripts/mysql_install_db --user=mysql 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
./bin/mysqladmin -u root password
vi /etc/my.cnf
[mysqld]# Remove leading # and set to the amount of RAM for the most important data# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging# changes to the binary log between backups.# log_bin# These are commonly set, remove the # and set as required.basedir = /usr/local/mysqldatadir = /var/lib/mysqlport = 3306# server_id = .....#socket = /var/lib/mysql/mysql.sockuser=mysql
http://sharadchhetri.com/2013/12/26/install-mysql-server-5-6-in-centos-6-x-and-red-hat-6-x-linux/
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
installshield 등록 dll텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.