日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
詳解mysql二進(jìn)制包具體方法

可能有人會問:安裝Mysql時為什么選擇二進(jìn)制包?主要是因為Mysql二進(jìn)制包已經(jīng)把所有功能都配置好了,安裝非常簡便,本篇文章重點為大家講解一下mysql二進(jìn)制包具體方法,有需要的小伙伴可以參考一下。

只為您設(shè)計更接底氣、較有營銷力的好網(wǎng)站,將營銷策劃與網(wǎng)頁設(shè)計互相結(jié)合的專業(yè)機構(gòu),成都營銷網(wǎng)站建設(shè)公司中較早掌握H5高端網(wǎng)站建設(shè)技術(shù)的機構(gòu)。一個好的成都品牌網(wǎng)站建設(shè),不能只是一張名片,茫茫網(wǎng)海,想要快速吸引到您客戶的眼球,必須全方位的展現(xiàn)出企業(yè)突出的優(yōu)勢,以求達(dá)到主動營銷的效果,最終促成成交!

1.安裝之前,先創(chuàng)建mysql用戶

[root@linuxprobe_nfs ~]# useradd mysql -s /sbin/nologin -M
[root@linuxprobe_nfs ~]# id mysql
uid=500(mysql) gid=500(mysql) groups=500(mysql)

2.軟件包的下載及解壓

[root@linuxprobe_nfs ~]# mkdir /home/chenfan/tools  -p
[root@linuxprobe_nfs ~]# cd /home/chenfan/tools
在http://dev.mysql.com/downloads/mysql/官網(wǎng)上下載mysql-5.5.32-linux2.6-x86_64.tar.gz
[root@linuxprobe_nfs tools]# ls
mysql-5.5.32-linux2.6-x86_64.tar.gz
[root@linuxprobe_nfs tools]# tar zxvf mysql-5.5.32-linux2.6-x86_64.tar.gz
[root@linuxprobe_nfs tools]# ls
mysql-5.5.32-linux2.6-x86_64  mysql-5.5.32-linux2.6-x86_64.tar.gz
[root@linuxprobe_nfs local]# mv mysql-5.5.32-linux2.6-x86_64 /usr/local/mysql-5.5.32  
###免編譯安裝
[root@linuxprobe_nfs local]# cd /usr/local
[root@linuxprobe_nfs local]# ln -s mysql-5.5.32  mysql  
###此處的軟鏈接為了版本升級提供了便利

3.初始化數(shù)據(jù)庫

[root@linuxprobe_nfs local]# mysql/scripts/mysql_install_db  --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/  --user=mysql
###此處如果初始化發(fā)生錯誤,刪除data目錄下的內(nèi)容,rm -fr  mysql/data/*,重新初始化。

4.生成MySQL配置文件

[root@linuxprobe_nfs local]# cd mysql
[root@linuxprobe_nfs mysql]# cp support-files/my-small.cnf  /etc/my.cnf

5.授權(quán)管理文件

[root@linuxprobe_nfs ~]# chown -R mysql:mysql /usr/local/mysql/
[root@linuxprobe_nfs ~]# ls -ld /usr/local/mysql/
drwxr-xr-x. 13 mysql mysql 4096 Jun 24 17:21 /usr/local/mysql/

6.設(shè)置科學(xué)的啟動方式

[root@linuxprobe_nfs mysql]# cp support-files/mysql.server  /etc/init.d/mysqld
[root@linuxprobe_nfs mysql]# chmod +x /etc/init.d/mysqld
[root@linuxprobe_nfs mysql]# /etc/init.d/mysqld start
Starting MySQL... SUCCESS!
[root@linuxprobe_nfs mysql]# chkconfig --add mysqld
[root@linuxprobe_nfs mysql]# chkconfig mysqld on
[root@linuxprobe_nfs mysql]# chkconfig --list mysqld
mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off
### 設(shè)置開機自啟動mysql

7.配置MySQL環(huán)境變量

[root@linuxprobe_nfs mysql]# echo 'PATH=/usr/local/mysql/bin:$PATH' >> /etc/profile
[root@linuxprobe_nfs mysql]# source /etc/profile
[root@linuxprobe_nfs mysql]# echo $PATH
/usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
###此處PATH路徑的設(shè)置為了后續(xù)mysql命令的使用

8.mysql登陸與密碼設(shè)置

[root@linuxprobe_nfs mysql]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.32 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, 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>

[root@linuxprobe_nfs mysql]# mysqladmin  -uroot password 'chenfan'
###密碼的設(shè)置
[root@linuxprobe_nfs mysql]# mysql -uroot -p
Enter password: chenfan
###交互式登陸

###至此完成MySQL的全部初始安裝與配置

網(wǎng)站名稱:詳解mysql二進(jìn)制包具體方法
本文路徑:http://m.5511xx.com/article/djjgehg.html