Archive for mysql

How to install & create user & create database mysql on linux

Posted in Linux, mysql with tags , on October 12, 2015 by dedy efendi

Temans ceritanya saya mau install database mysql beserta membuat user & create databasenya di linux centos 6.6 untuk kebutuhan instalasi web apps liferay, langsung aja yah :

  1. yum install -y mysql-server
  2. chkconfig –levels 235 mysqld on
  3. service mysqld start
  4. mysql -u root
  5. CREATE USER ‘liferay’@’localhost’ IDENTIFIED BY ‘liferay123’;
    GRANT ALL PRIVILEGES ON * . * TO ‘liferay’@’localhost’;
    FLUSH PRIVILEGES;
    SELECT User,Host FROM mysql.user;
  6. CREATE DATABASE liferay;

#dahgituaja

Advertisements