Debian/Ubuntu -ו RHEL/CentOS/Fedora -ב MariaDB לש םינותנה דסמ תא ןקתה


MariaDB ל יראניב הפיט ףילחת אוה- MySQL, לש םיירוקמ םירבחמ ידי לע חתופש MySQL Project ל ןיטולחל םאותו- MySQL הזה טסופה תא ונבתכש דע .רתוי םיבוט םיעוציב רופישו תונוכת רתוי ול שיש, MariaDB 10

?MariaDB -ב שמתשהל ילע עודמ

.חותפ דוק הניא רבכ רשאו לקרוא ידי לע ןכמ רחאל השכרנש ,Sun Microsystem ידי לע השכרנ MySQL ,2008 תנשב .םיחתפמ לש הנושארה הריחבהו רתויב ירלופופה RDBMS -הו בחרנ שומישב אצמנ MySQL םיעדוי ונלוכש

.MariaDB ןרק תוחתפתה לע וחקפי םה .MariaDB ירוחאמ תעכ דמוע ,Monty Program AB -ו MySQL דסיימ ,וסראל ןלאו קרמסקא דיווייד ,סוינדיו "יטנומ" לקיימ ידי לע MySQL לש םינותנ דסמ רציש שיאה .תמאב חותפ

?MariaDB -ב שמתשמ ימ

:םה םקלח ,MariaDB -ל ורבע םילודג םירתאו תוצפה רפסמ שי

    Fedora 18/17 -בו RHEL/CentOS 6/5 -ב MariaDB לש םינותנה דסמ תנקתה

    .ויתחתמ םיאבה םיכרעה תא קבדהו קתעה ,etc/yum.repos.d/MariaDB.repo/ תחת ופיר ץבוק רוצ .הנקתהל (הליבחה להנמ) MariaDB YUM תישיא םאתומה רגאמב שמתשהל דואמ ץלמומ

    .ךלש הלעפהה תכרעמ תסרגל ןוכנ רגאמ ףסוהו רחב אנא .Fedora 20,19,18,17 -ו RHEL 6, RHEL5, CentOS 6, CentOS 5 רובע םינימז MariaDB ירגאמ ,וישכעל ןוכנ

    # MariaDB 5.5 RedHat repository list - created 2013-08-11 14:29 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/rhel6-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 RedHat repository list - created 2013-08-11 14:30 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/rhel6-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 RedHat repository list - created 2013-08-11 14:31 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/rhel5-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 RedHat repository list - created 2013-08-11 14:31 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/rhel5-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 CentOS repository list - created 2013-08-11 14:21 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/centos6-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 CentOS repository list - created 2013-08-11 14:22 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/centos6-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 CentOS repository list - created 2013-08-11 14:23 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/centos5-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 CentOS repository list - created 2013-08-11 14:23 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/centos5-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 Fedora repository list - created 2014-03-19 06:34 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora20-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    
    # MariaDB 5.5 Fedora repository list - created 2014-03-19 06:35 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora20-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    
    # MariaDB 5.5 Fedora repository list - created 2014-03-19 06:31 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora19-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    
    # MariaDB 5.5 Fedora repository list - created 2014-03-19 06:34 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora19-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    
    # MariaDB 5.5 Fedora repository list - created 2013-08-11 14:32 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora18-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 Fedora repository list - created 2013-08-11 14:33 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora18-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 Fedora repository list - created 2013-08-11 14:33 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora17-x86
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    # MariaDB 5.5 Fedora repository list - created 2013-08-11 14:33 UTC
    # http://mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/5.5/fedora17-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1

    .האבה YUM תדוקפ םע ןיקתנ ואוב ./etc/yum.repos.d/ תחת MariaDB.repo ץבוק תא תחנהש רחאל

    # On RHEL/CentOS 6/5 and Fedora 19,18,17 #
     yum -y install MariaDB MariaDB-server
    
    # On Fedora 20 #
     yum -y install mariadb mariadb-server
    

    .תוליבחה לכ תדרוה רחאל יטמוטוא ןפואב ותוא ןיקתי YUM ,ןקתומ אל המיתח MariaDB GPG -ה חתפמ םא

    .האבה הדוקפה םע MariaDB תא לעפה ,הנקתהה תמלשה רחאל

    # On RHEL/CentOS 6/5 and Fedora 19,18,17 #
     /etc/init.d/mysql start
    
    # On Fedora 20 #
     systemctl start mariadb.service 
     systemctl enable mariadb.service
    

    .הקיר שרושל המסיסה לדחמ תרירבכ .ףוסמב 'mysql' הדוקפה תא דלקה

     mysql
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 1
    Server version: 5.5.32-MariaDB MariaDB Server
    
    Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MariaDB [(none)]>

    .הנקתהה םע םיעיגמש לדחמ תרירבכ םירדגומה םינותנ ידסמ גיצהל ידכ האבה הדוקפה תא לעפה

    MariaDB [(none)]> show databases;
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    | performance_schema |
    | test               |
    +--------------------+
    4 rows in set (0.00 sec)

    .זגפהמ תאצל ידכ הדוקפה תרושמ אצ דלקה

    MariaDB [(none)]> quit
    Bye

    .MariaDB תחטבאל שגו הקידבל םינותנה דסמ תא רסה < b> -ו קוחרמ שרושל הסינכה לוטיב , םיימינונא םישמתשמ תרסה , שרוש תמסיס ורידגי רשא תוריהזב םיבלשהמ דחא לכל תח

      mysql_secure_installation
    /usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found
    
    NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
          SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
    
    In order to log into MariaDB to secure it, we'll need the current
    password for the root user.  If you've just installed MariaDB, and
    you haven't set the root password yet, the password will be blank,
    so you should just press enter here.
    
    Enter current password for root (enter for none):
    
    OK, successfully used password, moving on...
    
    Setting the root password ensures that nobody can log into the MariaDB
    root user without the proper authorisation.
    
    Set root password? [Y/n] Y
    
    New password:
    Re-enter new password:
    Password updated successfully!
    Reloading privilege tables..
     ... Success!
    
    Remove anonymous users? [Y/n] y
     ... Success!
    
    Normally, root should only be allowed to connect from 'localhost'.  This
    ensures that someone cannot guess at the root password from the network.
    
    Disallow root login remotely? [Y/n] y
     ... Success!
    
    By default, MariaDB comes with a database named 'test' that anyone can
    access.  This is also intended only for testing, and should be removed
    before moving into a production environment.
    
    Remove test database and access to it? [Y/n] y
     - Dropping test database...
     ... Success!
     - Removing privileges on test database...
     ... Success!
    
    Reloading the privilege tables will ensure that all changes made so far
    will take effect immediately.
    
    Reload privilege tables now? [Y/n] y
     ... Success!
    
    Cleaning up...
    
    All done!  If you've completed all of the above steps, your MariaDB
    installation should now be secure.
    
    Thanks for using MariaDB!

    .םישדח םייוניש עצבל ידכ MariaDB לש םינותנה דסמ תא שדחמ ליעפהל ךילע ,העדוהה תנקתה טפירקס תמלשה רחאל

    # On RHEL/CentOS 6/5 and Fedora 19,18,17 #
     /etc/init.d/mysql restart
    
    # On Fedora 20 #
     systemctl restart mariadb.service 
    

    לוחתא םע ליחתהל MariaDB תא רדגה

     chkconfig mysql on

    .ומכ והשמ תוארל ונילעו הנורחאל ורדגוהש שרוש ירושיא םע רבחתהל הסננ ואוב

     mysql -u root -p
    Enter password:
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 1
    Server version: 5.5.32-MariaDB MariaDB Server
    
    Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MariaDB [(none)]>

    12.04/12/10/13.04 וטנובואבו Debian 7/6 -ב MariaDB רגאמ תנקתה

    .ותוא אוביי תעב וטנובואבו ןאיבדב ההז ראשיי המיתחה חתפמ ,ךתעידיל .ךלש תכרעמל MariaDB תא ףיסוהל ידכ תואבה תודוקפה תא לעפה .הנקתהל תישיא םאתומ רגאמב שמתשהל דואמ ץלמומ

    [email :~$ sudo apt-get install python-software-properties
    [email :~$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db

    .תיתחתב etc/apt/sources.list/ ץבוקב םיאבה םיכרעה תא קבדהו קתעה

    # MariaDB 5.5 repository list - created 2013-08-11 15:03 UTC
    # http://mariadb.org/mariadb/repositories/
    deb http://mirrors.scie.in/mariadb/repo/5.5/debian wheezy main
    deb-src http://mirrors.scie.in/mariadb/repo/5.5/debian wheezy main
    # MariaDB 5.5 repository list - created 2013-08-11 15:17 UTC
    # http://mariadb.org/mariadb/repositories/
    deb http://mirrors.scie.in/mariadb/repo/5.5/debian squeeze main
    deb-src http://mirrors.scie.in/mariadb/repo/5.5/debian squeeze main
    # MariaDB 5.5 repository list - created 2014-03-19 06:47 UTC
    # http://mariadb.org/mariadb/repositories/
    deb http://mirrors.scie.in/mariadb/repo/5.5/ubuntu saucy main
    deb-src http://mirrors.scie.in/mariadb/repo/5.5/ubuntu saucy main
    
    # MariaDB 5.5 repository list - created 2013-08-11 15:18 UTC
    # http://mariadb.org/mariadb/repositories/
    deb http://mirrors.scie.in/mariadb/repo/5.5/ubuntu raring main
    deb-src http://mirrors.scie.in/mariadb/repo/5.5/ubuntu raring main
    # MariaDB 5.5 repository list - created 2013-08-11 15:24 UTC
    # http://mariadb.org/mariadb/repositories/
    deb http://mirrors.scie.in/mariadb/repo/5.5/ubuntu quantal main
    deb-src http://mirrors.scie.in/mariadb/repo/5.5/ubuntu quantal main
    # MariaDB 5.5 repository list - created 2013-08-11 15:24 UTC
    # http://mariadb.org/mariadb/repositories/
    deb http://mirrors.scie.in/mariadb/repo/5.5/ubuntu precise main
    deb-src http://mirrors.scie.in/mariadb/repo/5.5/ubuntu precise main

    .םינותנה דסמל סיסבה תמסיס תא רידגהל שקבל יושע התא ,הנקתהה ךלהמב .גצומש יפכ apt-get הדוקפה םע MariaDB תא ןיקתהל לכות ,הכלהכ רגאמ תפסוהו חתפמה תא ןוכנ אבייתש רחאל

    [email :~$ sudo apt-get update
    [email :~$ sudo apt-get install mariadb-server

    .םדוק ורדגוהש שרוש ירושיא םע MariaDB -ל רבחתה

    [email :~$ sudo mysql -u root -p
    [sudo] password for narad: 
    Enter password:
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 42
    Server version: 10.0.3-MariaDB-1~raring-log mariadb.org binary distribution
    
    Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MariaDB [(none)]>
    MariaDB [(none)]> show databases;
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    | performance_schema |
    +--------------------+
    3 rows in set (0.00 sec)

    .םינותנה דסממ תאצל ידכ הדוקפה תרושמ אצ דלקה :הרעה

    הינפה ירושיק


כל הזכויות שמורות. © Linux-Console.net • 2019-2024