We can install MySQL and Apache/PHP (Apache and PHP are needed by phpMyAdmin) with a single command:
yum install mysql mysql-server httpd php php-mysql php-mbstring
Then we create the system startup links for MySQL and Apache (so that both start automatically whenever the system boots) and start both services:
chkconfig –levels 235 mysqld on
/etc/init.d/mysqld start
chkconfig –levels 235 httpd on
/etc/init.d/httpd start
Create a password for the MySQL user root (replace yourrootsqlpassword with the password you want to use):
mysqladmin -u root password yourrootsqlpassword
mysqladmin -h server1.example.com -u root password yourrootsqlpassword
yum install mysql mysql-server httpd php php-mysql php-mbstring
Then we create the system startup links for MySQL and Apache (so that both start automatically whenever the system boots) and start both services:
chkconfig –levels 235 mysqld on
/etc/init.d/mysqld start
chkconfig –levels 235 httpd on
/etc/init.d/httpd start
Create a password for the MySQL user root (replace yourrootsqlpassword with the password you want to use):
mysqladmin -u root password yourrootsqlpassword
mysqladmin -h server1.example.com -u root password yourrootsqlpassword
0 comments:
Post a Comment