Installating Mysql on Linux/unix

download Installating Mysql on Linux/unix

of 12

Transcript of Installating Mysql on Linux/unix

  • 8/3/2019 Installating Mysql on Linux/unix

    1/12

    I`stallatio` oe Nysql o` Rjh Mat Li`ux

    :1

    witm s`apsmots

    Vrjparjh by Uikas Smukla

    Erij`hs, I mavj ho`j tmis o` UNWarj But tmj Vrocjhurjs arj sinilar J`doy

    1 Eirst, switcm as tmj root usjr, so tmat you coulh cma`gj tmj ow`jrsmips a`h i`stalltmj eiljs witmout a`y probljn

  • 8/3/2019 Installating Mysql on Linux/unix

    2/12

    2 @ow ahh a group Sql a`h tmj` ahh nysql usjr to tmj group sql by eollowi`gconna`hs4

    Groupahh sql

    Zsjrahhg sql nysql

    3 @ow sjljct tmj patm wmjrj you wa`t to crjatj tmj hata eilj, wmicm is `ornally/usr/local

  • 8/3/2019 Installating Mysql on Linux/unix

    3/12

    8 @ow crjatj tmj Hata eilj witm tmj `anj Nysql a`h j`tjr tmj hata eilj

    : @ow u`conprjss tmj targz eilj tmat you mavj how`loahjh eron tmj wjbsitjNakj surj tmat tmj patm is tmj sanj wmjrj you wa`t tmj i`stallatio` to bjZ`conprjss it usi`g tmj eollowi`g conna`hs

    Xarzxve /usr/local/nysql /monj/oraclj/Hjsktop/nysql.:1:5targz

  • 8/3/2019 Installating Mysql on Linux/unix

    4/12

    5 Nakj surj tmat tmjrj arj tmj prj.rjquisitjs euleilljh ij propjr vjrsio`s oe gcca`h eljx arj availablj i` tmj` li`ux

    5 Cma`gj locatio` i`to tmj top.ljvjl hirjctory oe tmj u`packjh histributio`4

    smjll0 ch nysql.UJRSIO@

  • 8/3/2019 Installating Mysql on Linux/unix

    5/12

    @otj tmat currj`tly you nust co`eigurj a`h builh NySQL eron tmis top.ljvjl hirjctory

    You ca``ot builh it i` a hieej rj`t hirjctory

    7 Co`eigurj tmj rjljasj

    smjll0 /co eigurj ..prjeix>/usr/local/nysql

  • 8/3/2019 Installating Mysql on Linux/unix

    6/12

    Xmj scrjj` looks likj tmis wmj` tmj sql co`eiguratio` procjss is conpljtjh

    = Conpilj tmj rjljasj ow

    Smjll0 nakj

    Aetjr ru``i`g tmj nakj conna`h tmj scrjj` looks likj tmis4

  • 8/3/2019 Installating Mysql on Linux/unix

    7/12

  • 8/3/2019 Installating Mysql on Linux/unix

    8/12

    9 I`stall tmj histributio`4smjll0 nakj i`stall

    Wmilj tmj nakj i`stall conna`h is ru`, tmj scrjj` appjars likj tmis4

  • 8/3/2019 Installating Mysql on Linux/unix

    9/12

    16Copyi`g nyc`e eilj

    Cma`gj locatio` i`to tmj i`stallatio` hirjctory4

    smjll0 ch /usr/local/nysql

    Ie you mavj`'t i`stalljh NySQL bjeorj, you nust crjatj tmj NySQL gra`t tabljs4

    smjll0 bi`/nysql_i`stall_hb ..usjr>nysql

  • 8/3/2019 Installating Mysql on Linux/unix

    10/12

    11 Cma`gj tmj ow`jrsmip oe progran bi`arijs to root a`h ow jrsmip oe tmj hata

    hirjctory to tmj usjr tmat you ru nysqlhas Assuni`g tmat you arj locatjh i` tmj

    i`stallatio` hirjctory -/usr/local/nysql), tmj conna`hs look likj tmis4

    smjll0 cmow` .R root

    smjll0 cmow` .R nysql varsmjll0 cmgrp .R nysql

    12 Aetjr jvjrytmi`g mas bjj` i`stalljh, you smoulh tjst your histributio Xo start tmj

    NySQL sjrvjr, usj tmj eollowi`g conna`h4

    smjll0 /usr/local/nysql/bi`/nysqlh_saej ..usjr>nysql %

  • 8/3/2019 Installating Mysql on Linux/unix

    11/12

    13 @ow you ca` start nysql by ru``i`g nysql i` /usr/local/nysql/bi` by typi`g

    Smjll0 nysql or /Nysql

    @ow you ca` sjj tmj hatabasjs alrjahy provihjh to you by tmj conna`h Smowhatabasjs

    Xmj scrjj` will appjar likj tmis4

  • 8/3/2019 Installating Mysql on Linux/unix

    12/12

    18 Ie you rjstart tmj li`ux, it nay mappj` tmat it nay `ot start autonatically, so wj

    mavj tmj eollowi`g solutio`4

    As wj k`ow jvjry usjr i` li`ux mas a pjrso`al basm proeilj So wj ca` jhit tmis

    basm_proeilj eilj by Ui jhitor a`h jxport tmj patm oe tmj eolhjr wmjrj tmj jxjcutablj eilj

    nysql a`h otmjr eilj is availablj

    Xmj conna`h to jhit tmj basm proeilj is4

    vi basm_proeilj

    Mjrj wj ahh tmj bi` eolhjr oe tmj Nysql hirjctory wmjrj jacm jxjcutivj eiljs oe tmj

    Nysql co`eiguratio` lijs Xmis nja`s tmat tmj usjr wmosj basm proeilj is cma`gjh wmj`

    loggjh i`, will sjj eor tmj jxjcutabljs eiljs i` tmj hirjctorijs wmicm mas bjj` listjh i` tmjVAXM sjgnj`t oe tmj basm Vroeilj

    So, wmj` loggjh i` `jxt tinj, wj ca` hirjctly ru` nysqlh a`h tmj` tmj Nysql pronpt

    witmout a`y probljn

    XMA@KS