欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

CentOS6.6MySQL5.5.32綠色版安裝配置-創(chuàng)新互聯(lián)

MySQL 5.5.32綠色版安裝配置

專注于為中小企業(yè)提供成都做網(wǎng)站、成都網(wǎng)站制作服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)徐聞免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了近千家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。
  1. 基本信息

系統(tǒng)版本:CentOS 6.6

MySQL版本:5.5.32 綠色版

  1. 初始化MySQL,出現(xiàn)×××部分兩個OK,表示初始化正確

[root@lnmp02 tools]# useradd -s/sbin/nologin -M mysql

[root@lnmp02 tools]# tar zxvfmysql-5.5.32-linux2.6-x86_64.tar.gz

[root@lnmp02 tools]# mvmysql-5.5.32-linux2.6-x86_64  /application/mysql-5.5.32

[root@lnmp02 tools]# ln -s/application/mysql-5.5.32  /application/mysql

[root@lnmp02 application]#/application/mysql/scripts/mysql_install_db --basedir=/application/mysql/--datadir=/application/mysql/data/ --user=mysql

Installing MySQL system tables...

OK

Filling help tables...

OK

To start mysqld at boot timeyou have to copy

support-files/mysql.server tothe right place for your system

PLEASE REMEMBER TO SET APASSWORD FOR THE MySQL root USER !

To do so, start the server,then issue the following commands:

/application/mysql//bin/mysqladmin-u root password 'new-password'

/application/mysql//bin/mysqladmin-u root -h lnmp02 password 'new-password'

Alternatively you can run:

/application/mysql//bin/mysql_secure_installation

which will also give you theoption of removing the test

databases and anonymous usercreated by default. This is

strongly recommended forproduction servers.

See the manual for moreinstructions.

You can start the MySQL daemonwith:

cd /application/mysql/ ;/application/mysql//bin/mysqld_safe &

You can test the MySQL daemonwith mysql-test-run.pl

cd/application/mysql//mysql-test ; perl mysql-test-run.pl

Please report any problems withthe /application/mysql//scripts/mysqlbug script!

  1. 改變/application/mysql所屬主和組,cp配置文件,改變MySQL啟動腳本里的路徑

[root@lnmp02 ~]# chown -Rmysql.mysql /application/mysql/

[root@lnmp02 ~]# cp /application/mysql/support-files/my-small.cnf /etc/my.cnf

[root@lnmp02 ~]# sed -i's#/usr/local/mysql#/application/mysql#g' /application/mysql/bin/mysqld_safe     ###修改腳本里的安裝路徑

[root@lnmp02 ~]#/application/mysql/bin/mysqld_safe &  ###以后臺進程方式啟動MySQL

  1. 查看MySQL是否正常啟動

[root@lnmp02 ~]# lsof -i:3306

[root@lnmp02 ~]# netstat-tulpn|grep 3306

[root@lnmp02 ~]# ps -ef|grepmysql

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

[root@lnmp02 ~]# echo"PATH=/application/mysql/bin:$PATH" >>/etc/profile

[root@lnmp02 ~]# source/etc/profile

[root@lnmp02 ~]# which mysql   ###確定是否是綠色版的MySQL而不是yum安裝的MySQL

/application/mysql/bin/mysql

  1. 登陸MySQL

[root@lnmp02 ~]# mysql

Welcome to the MySQLmonitor. Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.5.32 MySQLCommunity Server (GPL)

Copyright (c) 2000, 2013,Oracle and/or its affiliates. All rights reserved.

Oracle is a registeredtrademark of Oracle Corporation and/or its

affiliates. Other names may betrademarks of their respective

owners.

Type 'help;' or '\h' for help.Type '\c' to clear the current input statement.

mysql>

  1. 配置傳統(tǒng)方式啟動MySQL

[root@lnmp02 ~]# cp/application/mysql/support-files/mysql.server /etc/init.d/mysqld

[root@lnmp02 ~]# sed -i's#/usr/local/mysql#/application/mysql#g' /etc/init.d/mysqld ##修改mysql安裝路徑

[root@lnmp02 ~]# killall mysqld  ###殺死之前啟動的mysql進程

[root@lnmp02 ~]# lsof -i:3306   ###確認是否已殺死m(xù)ysql進程

[root@lnmp02 ~]#/etc/init.d/mysqld start  ###以傳統(tǒng)方式重新啟動mysql進程

  1. 設(shè)置mysql管理員密碼,默認管理員是root用戶

[root@lnmp02 ~]# mysqladmin-uroot password "123456"

[root@lnmp02 ~]# mysql -uroot-p123456  ###登陸mysql,注意,-p和密碼之間不能有空格

[root@lnmp02 ~]# mysqladmin-uroot -p123456 password "wangning" ###更改密碼

  1. 查看錯誤日志

[root@lnmp02 ~]# cat /application/mysql/data/lnmp02.err   ###該錯誤日志文件是以主機名加.err后綴命名的

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

新聞標題:CentOS6.6MySQL5.5.32綠色版安裝配置-創(chuàng)新互聯(lián)
文章URL:http://aaarwkj.com/article6/dipeig.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃、全網(wǎng)營銷推廣關(guān)鍵詞優(yōu)化、域名注冊、App開發(fā)、微信小程序

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名
日本新任女教师在线播放| 亚洲国产区男人的天堂| 亚洲日本成人av在线观看 | 狠狠久久五月综合色和啪| 久久热这里只有精品网站| 午夜欧美激情在线视频| 91伊人手机在线观看| 亚洲少妇熟女一区二区三区| 精品毛片av一区二区三区| 在线观看亚洲av日韩av| 人妻丰满熟妇九九久久| 中文字幕人妻熟女在线| 亚洲国产成人欧美日韩另类| 欧美av在线免费观看| 成人又黄又爽大片在线观看| 黄色成人av在线网站| 日韩一区二区三区成人| 中国毛片一区二区三区| 成人又黄又爽大片在线观看| 国产一区二区三区在线视频播放| 亚洲美女香蕉视频在线| 日韩欧美人妻一二三四区| 日韩av有码在线播放| 欧美黄色一区二区在线观看| 久久成人av一区二区三区| 日本韩国一区二区精品| 国产91黑丝在线播放| 青青青在线视频观看华人| 亚洲精品免费一区二区三区| 在线视频天堂亚洲天堂| 国产精品夜色一区二区三区不卡 | 日本精品国产一区二区在线| 国产欧美又粗又猛又爽老| 日本免费一区二区三区等视频| 在线观看一区二区三区国产视频| 日韩黄片免费观看大全| 国产亚洲精品第一最新| 国产欧美日本精品视频| 日本日韩一区二区国产| 国产日韩传媒在线观看| 国产成人亚洲一区二区三区|