1 First check if there are any installed, if you have already installed, you do not have to install the
Yum List installed mysql*
Rpm-qa | grep mysql*
2 See if there are any installation packages:
Yum List mysql*
3 Install the MySQL client:
Yum install MySQL
To install the MySQL server side:
Yum Install Mysql-server
Yum install mysql-devel4 start MySQL service: Service mysqld start5 set boot boot chkconfig mysqld on to see if Setup succeeded Chkconfig--list Mys QLD6 Create root administrator: mysqladmin-u root password 123456 login: mysql-u root-p Enter your password 7 stop MySQL Services service mysqld STOP8 Forgot password reset password service mysqld stop stop service mysqld_safe--user=root--skip-grant-tables empty mysql password mysql-u root login MySQL use MySQL using MySQL library update user set Password=password ("New_pass") where user= "root"; Set a new password (the original user name in this table AH) flush privileges; Refresh 9 Open remote access INSERT into user (Host,user) VALUES ("%", "root");
Install MySQL online under CentOS