1. InstallationSee if you've installed: Yum list installed mysql* RPM-QA | grep mysql* See if there are no installation packages: Yum list mysql* install MySQL client: & nbsp Yum install mysql installation MySQL server-side: Yum install mysql-server Yum Install mysql-devel www.2cto.com 2, start && stop database character set settings mysql config file/etc/my.cnf add default-character-set=utf8 start MySQL service: Service mysqld start or/etc/init.d/mysqld start boot: Chkconfig-add mysqld, view boot start Set whether successful chkconfig--list | grep mysql* mysqld 0: Close 1: Off Closed  2: Enable 3: Enable 4: Enable 5: Enable 6: Off stop: Service MySQLD STOP2, login Create root administrator: mysqladmin-u root password 123456 www.2cto.com Login Record: mysql-u root-p Enter the password. Forgot password: service mysqld stop Mysqld_safe--user=roo T--skip-grant-tables mysql-u root use my sql Update user set Password=password ("New_pass") where user= "root"; flush privileges;   3, remote access Open firewall port number MySQL Add permission: The user table in the MySQL library adds a record of host "%" and user as "root". 4. Several important contents of Linux mysql www.2cto.com Database directory /var/lib/mysql/profile & nbsp /usr/share/mysql (mysql.server command and configuration file) commands /usr/bin (mysqladmin Mysqldump and other commands) Start script /etc/rc.d/init.d/(Start script file mysql directory)  
Install MySQL using yum under Linux