<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        Ubuntu下安裝MySQL5.6.23_MySQL

        來源:懂視網 責編:小采 時間:2020-11-09 19:46:54
        文檔

        Ubuntu下安裝MySQL5.6.23_MySQL

        Ubuntu下安裝MySQL5.6.23_MySQL:Ubuntu下安裝MySQL 5.6.23 1.下載對應Linux-generic的源碼包,解壓,將解壓后的文件夾重命名為mysql,移動到/usr/local目錄下; tar –xzf mysql-5.6.23-linux-glibc2.5-x86_64.tar.gz mv mysql-5.6.23-linux-gli
        推薦度:
        導讀Ubuntu下安裝MySQL5.6.23_MySQL:Ubuntu下安裝MySQL 5.6.23 1.下載對應Linux-generic的源碼包,解壓,將解壓后的文件夾重命名為mysql,移動到/usr/local目錄下; tar –xzf mysql-5.6.23-linux-glibc2.5-x86_64.tar.gz mv mysql-5.6.23-linux-gli

        Ubuntu下安裝MySQL 5.6.23
        1.下載對應Linux-generic的源碼包,解壓,將解壓后的文件夾重命名為mysql,移動到/usr/local目錄下; tar –xzf mysql-5.6.23-linux-glibc2.5-x86_64.tar.gz mv mysql-5.6.23-linux-glibc2.5-x86_64 mysql sudo mv mysql /usr/local
        2.創建用戶mysql和組mysql vonzhou@de16-C6100: sudo groupadd mysql
        vonzhou@de16-C6100: sudo useradd -r -g mysql mysql
        3、進入mysql目錄 vonzhou@de16-C6100: sudo cd /usr/local/mysql
        4、將mysql文件夾own及grp變更為mysql vonzhou@de16-C6100:/usr/local/mysql$ sudo chown -R mysql . vonzhou@de16-C6100:/usr/local/mysql$ sudo chgrp -R mysql .

        5、執行mysql安裝腳本,設置用戶
        vonzhou@de16-C6100:/usr/local/mysql$ sudo ./scripts/mysql_install_db --user=mysql
        Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory vonzhou@de16-C6100:/usr/local/mysql$ sudo apt-get install libaio-dev
        (..........)
        vonzhou@de16-C6100:/usr/local/mysql$ sudo ./scripts/mysql_install_db --user=mysql
        Installing MySQL system tables...2015-03-18 21:22:46 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
        2015-03-18 21:22:46 5284 [Note] InnoDB: Using atomics to ref count buffer pool pages
        2015-03-18 21:22:46 5284 [Note] InnoDB: The InnoDB memory heap is disabled
        2015-03-18 21:22:46 5284 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
        2015-03-18 21:22:46 5284 [Note] InnoDB: Memory barrier is not used
        2015-03-18 21:22:46 5284 [Note] InnoDB: Compressed tables use zlib 1.2.3
        2015-03-18 21:22:46 5284 [Note] InnoDB: Using Linux native AIO
        2015-03-18 21:22:46 5284 [Note] InnoDB: Using CPU crc32 instructions
        2015-03-18 21:22:46 5284 [Note] InnoDB: Initializing buffer pool, size = 128.0M
        2015-03-18 21:22:46 5284 [Note] InnoDB: Completed initialization of buffer pool
        2015-03-18 21:22:46 5284 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
        2015-03-18 21:22:46 5284 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
        2015-03-18 21:22:46 5284 [Note] InnoDB: Database physically writes the file full: wait...
        2015-03-18 21:22:46 5284 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
        2015-03-18 21:22:46 5284 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
        2015-03-18 21:22:47 5284 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
        2015-03-18 21:22:47 5284 [Warning] InnoDB: New log files created, LSN=45781
        2015-03-18 21:22:47 5284 [Note] InnoDB: Doublewrite buffer not found: creating new
        2015-03-18 21:22:47 5284 [Note] InnoDB: Doublewrite buffer created
        2015-03-18 21:22:47 5284 [Note] InnoDB: 128 rollback segment(s) are active.
        2015-03-18 21:22:47 5284 [Warning] InnoDB: Creating foreign key constraint system tables.
        2015-03-18 21:22:47 5284 [Note] InnoDB: Foreign key constraint system tables created
        2015-03-18 21:22:47 5284 [Note] InnoDB: Creating tablespace and datafile system tables.
        2015-03-18 21:22:47 5284 [Note] InnoDB: Tablespace and datafile system tables created.
        2015-03-18 21:22:47 5284 [Note] InnoDB: Waiting for purge to start
        2015-03-18 21:22:48 5284 [Note] InnoDB: 5.6.23 started; log sequence number 0
        2015-03-18 21:22:52 5284 [Note] Binlog end
        2015-03-18 21:22:52 5284 [Note] InnoDB: FTS optimize thread exiting.
        2015-03-18 21:22:52 5284 [Note] InnoDB: Starting shutdown...
        2015-03-18 21:22:53 5284 [Note] InnoDB: Shutdown completed; log sequence number 1625977
        OK

        Filling help tables...2015-03-18 21:22:53 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
        2015-03-18 21:22:53 5307 [Note] InnoDB: Using atomics to ref count buffer pool pages
        2015-03-18 21:22:53 5307 [Note] InnoDB: The InnoDB memory heap is disabled
        2015-03-18 21:22:53 5307 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
        2015-03-18 21:22:53 5307 [Note] InnoDB: Memory barrier is not used
        2015-03-18 21:22:53 5307 [Note] InnoDB: Compressed tables use zlib 1.2.3
        2015-03-18 21:22:53 5307 [Note] InnoDB: Using Linux native AIO
        2015-03-18 21:22:53 5307 [Note] InnoDB: Using CPU crc32 instructions
        2015-03-18 21:22:53 5307 [Note] InnoDB: Initializing buffer pool, size = 128.0M
        2015-03-18 21:22:53 5307 [Note] InnoDB: Completed initialization of buffer pool
        2015-03-18 21:22:53 5307 [Note] InnoDB: Highest supported file format is Barracuda.
        2015-03-18 21:22:53 5307 [Note] InnoDB: 128 rollback segment(s) are active.
        2015-03-18 21:22:53 5307 [Note] InnoDB: Waiting for purge to start
        2015-03-18 21:22:53 5307 [Note] InnoDB: 5.6.23 started; log sequence number 1625977
        2015-03-18 21:22:53 5307 [Note] Binlog end
        2015-03-18 21:22:53 5307 [Note] InnoDB: FTS optimize thread exiting.
        2015-03-18 21:22:53 5307 [Note] InnoDB: Starting shutdown...
        2015-03-18 21:22:55 5307 [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:

        ./bin/mysqladmin -u root password 'new-password'
        ./bin/mysqladmin -u root -h de16-C6100 password 'new-password'

        Alternatively you can run:

        ./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 . ; ./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 at http://bugs.mysql.com/

        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

        WARNING: Found existing config file ./my.cnf on the system.
        Because this file might be in use, it was not replaced,
        but was used in bootstrap (unless you used --defaults-file)
        and when you later start the server.
        The new default config file was created as ./my-new.cnf,
        please compare it with your file and take the changes you need. 6.上述步驟安裝完成后,把該目錄的所有權變更回來,除了data目錄可以供我們普通用戶操作; vonzhou@de16-C6100:/usr/local/mysql$ sudo chown -R root .
        vonzhou@de16-C6100:/usr/local/mysql$ sudo chown -R mysql data
        7. 可以改變默認配置文件的位置; vonzhou@de16-C6100:/usr/local/mysql$ sudo cp support-files/my-default.cnf /etc/my.cnf
        8.后臺啟動mysql server;
        vonzhou@de16-C6100:/usr/local/mysql$ sudo bin/mysqld_safe --user=mysql &
        [1] 5375
        vonzhou@de16-C6100:/usr/local/mysql$ 150318 21:29:24 mysqld_safe Logging to '/usr/local/mysql/data/de16-C6100.err'.
        150318 21:29:24 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

        9. 設置MySQL root權限的密碼;
        vonzhou@de16-C6100:/usr/local/mysql$ sudo bin/mysqladmin -u root password '你的密碼'
        Warning: Using a password on the command line interface can be insecure.
        10. 把執行腳本移到init.d目錄下;
        vonzhou@de16-C6100:/usr/local/mysql$ sudo cp support-files/mysql.server /etc/init.d/mysql.server
        11.此時可以查看運行狀態,可以用service命令的status/start/stop/restart控制;
        vonzhou@de16-C6100:/usr/local/mysql$ sudo service mysql.server status
        * MySQL running (5477)
        12.設置開機啟動(就是插入到那些開機會自動運行的腳本中),取消自啟動的話defaults -> remove ;
        vonzhou@de16-C6100:/usr/local/mysql$ sudo update-rc.d mysql.server defaults
        Adding system startup for /etc/init.d/mysql.server ...
        /etc/rc0.d/K20mysql.server -> ../init.d/mysql.server
        /etc/rc1.d/K20mysql.server -> ../init.d/mysql.server
        /etc/rc6.d/K20mysql.server -> ../init.d/mysql.server
        /etc/rc2.d/S20mysql.server -> ../init.d/mysql.server
        /etc/rc3.d/S20mysql.server -> ../init.d/mysql.server
        /etc/rc4.d/S20mysql.server -> ../init.d/mysql.server
        /etc/rc5.d/S20mysql.server -> ../init.d/mysql.server
        13.搞個符號連接,方便命令的輸入;
        vonzhou@de16-C6100:/usr/local/mysql$ sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql
        14. 此時,就按照好了,可以簡單測試下。 vonzhou@de16-C6100:/usr/local/mysql$ mysql
        Welcome to the MySQL monitor. Commands end with ; or \g.
        Your MySQL connection id is 2
        Server version: 5.6.23 MySQL Community Server (GPL)

        Copyright (c) 2000, 2015, 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> show databases;
        +--------------------+
        | Database |
        +--------------------+
        | information_schema |
        | test |
        +--------------------+
        2 rows in set (0.00 sec)

        mysql> exit
        Bye

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        Ubuntu下安裝MySQL5.6.23_MySQL

        Ubuntu下安裝MySQL5.6.23_MySQL:Ubuntu下安裝MySQL 5.6.23 1.下載對應Linux-generic的源碼包,解壓,將解壓后的文件夾重命名為mysql,移動到/usr/local目錄下; tar –xzf mysql-5.6.23-linux-glibc2.5-x86_64.tar.gz mv mysql-5.6.23-linux-gli
        推薦度:
        標簽: 如何 ubuntu mysql
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 97av免费视频| 免费看黄的成人APP| 野花高清在线观看免费3中文 | 国产精品视_精品国产免费| 亚洲人成免费网站| 大地资源二在线观看免费高清 | 亚洲国产成人久久精品app| 免费人成在线观看69式小视频| 亚洲福利一区二区精品秒拍| 1000部国产成人免费视频| 激情亚洲一区国产精品| 四虎成人免费大片在线| 国产亚洲漂亮白嫩美女在线| 亚洲精品tv久久久久| 在线看片免费人成视频播| 亚洲自偷自拍另类12p| AV无码免费永久在线观看| 亚洲精品亚洲人成在线| 亚洲日韩中文字幕日韩在线| 免费人成黄页在线观看日本| 亚洲国产精品久久网午夜| 日本一道在线日本一道高清不卡免费| 爱情岛亚洲论坛在线观看 | 国产成人免费福利网站| 精品国产免费人成网站| 亚洲精品中文字幕无码AV| 国产精品免费_区二区三区观看| 国产精品九九久久免费视频 | 亚洲国产精品成人精品小说| 国产区卡一卡二卡三乱码免费| 国产三级在线免费观看| 亚洲国产精品午夜电影| 亚洲成?Ⅴ人在线观看无码| a级毛片视频免费观看| 亚洲成人激情小说| 亚洲一区二区三区香蕉| 亚洲国产精品免费观看| 国产日韩在线视频免费播放| 亚洲人成7777| 亚洲人成伊人成综合网久久久 | 亚洲xxxxxx|