Dear temans semoga sehat selalu 🙂

Mari kita sambung artikel yang ini http://panduan.blankonlinux.or.id/umum/apa-itu-liferay-dan-bagaimana-konfigurasinya/

Dan kita lakukan langkah ke 2 :

  • Buat user & database di mysql, jika belum ada databasenya mari kita install dulu, dikarenakan kita butuh database internal untuk liferaynya

buka terminal anda ketik seperti ini :

  1. sudo apt-get install mysql-server
  2. sudo /etc/init.d/mysql start
  3. mysql -u root
  4. mysql> CREATE USER ‘liferay’@’localhost’ IDENTIFIED BY ‘liferay123’;
    Query OK, 0 rows affected (0.00 sec)mysql> GRANT ALL PRIVILEGES ON * . * TO ‘liferay’@’localhost’;
    Query OK, 0 rows affected (0.00 sec)mysql> FLUSH PRIVILEGES;
    Query OK, 0 rows affected (0.00 sec)

    mysql> SELECT User,Host FROM mysql.user;
    +——————+———–+
    | User | Host |
    +——————+———–+
    | root | 127.0.0.1 |
    | root | ::1 |
    | root | arsitekpc |
    | debian-sys-maint | localhost |
    | liferay | localhost |
    | root | localhost |
    +——————+———–+
    6 rows in set (0.00 sec)

  5. mysql> CREATE DATABASE liferay;
    Query OK, 1 row affected (0.00 sec)
  6. Dan sekarang coba masuk dengan user liferay : mysql -u liferay -pliferay123
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 49
    Server version: 5.5.35-1 (Debian)Copyright (c) 2000, 2013, 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 |
    | liferay |
    | mysql |
    | performance_schema |
    +——————–+
    4 rows in set (0.00 sec)

    mysql> use liferay;
    Database changed
    mysql> show tables;
    Empty set (0.00 sec)

ok sekarang kita sudah buat database untuk liferaynya, bersambung ke http://panduan.blankonlinux.or.id/umum/apa-itu-liferay-dan-bagaimana-konfigurasinya-part-3/

#nuhun

The following two tabs change content below.
Berbagilah biar hatinya adem 🙂

One thought on “Apa itu liferay dan bagaimana konfigurasinya part 2

Leave a Reply

Your email address will not be published. Required fields are marked *