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

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

ubuntu安裝mysql

系統(tǒng) 2569 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時(shí)可能會(huì)報(bào)錯(cuò),按照提示安裝一個(gè)包后重新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
    

第一個(gè)命令是復(fù)制并重命名,很簡(jiǎn)單。

第二個(gè)命令為mysql服務(wù)器文件添加可執(zhí)行權(quán)限。

第三個(gè)命令設(shè)置系統(tǒng)中所有服務(wù)在各運(yùn)行級(jí)別中的啟動(dòng)和關(guān)閉狀態(tài)。

?

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 主機(jī) 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


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

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

【本文對(duì)您有幫助就好】

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

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 久热草视频 | 最近中文字幕无吗免费视频 | 亚洲女精品一区二区三区 | 欧美日韩综合在线视频免费看 | 在线播放精品视频 | 色啦啦影院 | 亚洲视频日韩 | 国产网站麻豆精品视频 | 四虎b7j77com| 国产九九在线视频 | 尤物视频一区二区 | 天天爱天天爽 | 国产精品免费久久久久影院 | 91久久在线 | 97精品国产91久久久久久 | 欧美 日韩 国产 在线 | 毛片啪啪视频 | 日本中文字幕一区二区高清在线 | 欧美日韩成人午夜免费 | 亚洲成a人v大片在线观看 | 久久婷婷综合中文字幕 | aaa级大片| 热99这里只有精品 | 久久国产精品亚洲77777 | 成人黄色在线免费观看 | 精品久久久久久中文字幕网 | 国产精品98视频全部国产 | 精品视频在线观看 | 精品一区二区视频 | 国产综合婷婷 | 777奇米影视色888成人 | 波多野结衣一区2区3区 | 99热精品成人免费观看 | 欧美与黑人午夜性猛交久久久 | 欧美日韩激情在线 | 波多野结衣一区二区三区四区 | 天天干天天玩 | 香蕉网伊在线中文慕大全 | 亚洲精品色播一区二区 | 欧美日韩中文一区 | 亚洲欧美日韩在线精品2021 |