Install MySQL – Centos

How to install MySQL

  1. Install MySQL
    yum install mysql-server mysql php-mysql

How to configure MySQL

  1. Set the MySQL service to start on boot
    chkconfig –levels 235 mysqld on
  2. Start the MySQL service
    service mysqld start
  3. Log into MySQL
    mysql -u root
  4. Set the root user password for all local domains
    mysqladmin -u root password NEWPASSWORD
  5. Exit MySQL


Leave a Reply

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