Home > CentOS, MySQL > How to install MySQL (CentOS 5.4)

How to install MySQL (CentOS 5.4)

# yum install mysql mysql-devel mysql-server
# chkconfig --levels 235 mysqld on
# /etc/init.d/mysqld start

 

# mysql -u root -p
CREATE DATABASE ris CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'ris'@'localhost' IDENTIFIED BY 'myPassword';
GRANT ALL ON ris.* TO 'ris'@'localhost';
Categories: CentOS, MySQL Tags:
  1. No comments yet.
  1. No trackbacks yet.