groupaddmysqlshell>useradd-r-gmysqlmysql#Beginningofsource-buildspecificinstructionsshell>tarzxvfmysql-VERSION.tar.gzshell>cdmysql-VERSIONshell>cmake.shell>ma" />

亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

ubuntu安裝mysql

系統 2129 0

mysql有deb包,但是用過一次,感覺不如源碼編譯安裝好,卸載后選擇下載源碼重新安裝。

    # 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 &
      
    
  

ubuntu下用cmake時可能會報錯,按照提示安裝一個包后重新cmake。

?

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

一般是/etc/init.d/目錄下。命令如下:

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


      
      
        2
      
      
        chmod
      
       +x /etc/init.d/
      
        mysql


      
      
        3
      
       chkconfig --add mysql
    

第一個命令是復制并重命名,很簡單。

第二個命令為mysql服務器文件添加可執行權限。

第三個命令設置系統中所有服務在各運行級別中的啟動和關閉狀態。

?

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

?

      
        1
      
       ./bin/mysqladmin -u root password 
      
        '
      
      
        new-password
      
      
        '
      
      
        2
      
       ./bin/mysqladmin -u root -h 主機 password 
      
        '
      
      
        new-password
      
      
        '
      
    

?

Alternatively you can run:

?

      
        1
      
       ./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:

?

      
        1
      
       cd . ; ./bin/mysqld_safe &
    

?

You can test the MySQL daemon with mysql-test-run.pl

?

      
        1
      
       cd mysql-test ; 
      
        perl
      
       mysql-test-run.pl
    

?

New default config file was created as ./my.cnf and

will be used by default by the server when you start it.
You may edit this file to change server settings

?

?

ubuntu安裝mysql


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 91国在线观看 | 天天色天天综合网 | 久久精品国产欧美成人 | 欧美成人专区 | 亚洲成精品动漫久久精久 | 91精品全国免费观看青青 | a级在线观看视频 | 免费精品国产自产拍在 | 色综合中文字幕天天在线 | 国产系列欧美系列日韩系列在线 | 欧美一级爆毛片 | 久久国产热这里只有精品 | 国产色婷婷免费视频 | 日韩欧美在线播放视频 | 欧美xxxx成人免费网站 | 2021最新国产成人精品免费 | 网红被免费网站视频在线 | 天天躁狠狠躁狠狠躁夜夜躁 | 99视频在线永久免费观看 | 99热99操99射| 久久只有精品视频 | 色综合久久亚洲国产日韩 | 四虎影视在线永久免费看黄 | 69美女福利视频在线观看 | 久久久久久久久久免免费精品 | 亚洲精品麻豆一区二区 | 视频一区二区国产 | 久久青草18免费观看网站 | 俄罗斯美女逼 | 日本成年一区久久综合 | 一级毛片直接看 | 狠狠色先锋资源网 | 欧美金八天国 | 国产精品日韩在线观看 | 一级二级三级毛片 | 99热这里只有精品在线播放 | 午夜成年人网站 | 91在线精品亚洲一区二区 | 亚洲黄色在线看 | 国产91在线|亚洲 | 亚洲天堂久久久 |