This article show you how to install MySQL on CentOS GNU/Linux with simple. To do this action, you must on root access. This tutorial can apply with all version of CentOS.
[root@local ~]# yum -y install mysql mysql-server
After you done above action, then continue with this action:
[root@local ~]# chkconfig --levels 235 mysqld on
Then, start MySQL daemon to run.
[root@local ~]# /etc/init.d/mysqld start
To make root password for MySQL, follow this step!
[root@local ~]# mysql_secure_installation
When the program try to request password, input your password for root on MySQL,
BUT DO NOT your root's account password!. After that, you can connect to your MySQL server with this command:
[root@local ~]# mysql -u root -p
You are done now!
0 comments:
Post a Comment