Environment RedHatLinux6.1MySQL5.1.7 problems RedHatLinux6.1 prepare for installing MySQL before installation 1. Download resources: MySQL-server-5.1.7-0.i386.rpm, click here to download. MySQL-client-5.1.7-0.i386.rpm, click here to download. 2. log on to the system and check if MySQL3. copy the two installation files to yourself.
Environment RedHat Linux 6.1 MySQL 5.1.7 problem RedHat Linux 6.1 prepare before installing MySQL 1. Download resources: MySQL-server-5.1.7-0.i386.rpm, click here to download. MySQL-client-5.1.7-0.i386.rpm, click here to download. 2. log on to the system and check whether MySQL has been installed. 3. Copy the two installation files to yourself.
Environment
RedHat Linux 6.1 + MySQL 5.1.7
Problem
Install MySQL in RedHat Linux 6.1
Preparations before installation
1. Download resources:
MySQL-server-5.1.7-0.i386.rpm, click here to download.
MySQL-client-5.1.7-0.i386.rpm, click here to download.
2. log on to the system and check whether MySQL is installed.
3. Copy the two installation files to your own directory.
Formal Installation
1. Installation server, rpm-ivh MySQL-server-5.1.7-0.i386.rpm
The following information is displayed.
warning: MySQL-server-5.1.7-0.i386.rpmsignature: NOKEY, key ID 5072e1f5 Preparing... ########################################### [100%] 1:MySQL-server ########################################### [100%]
Check whether the installation is successful: ps-aux | grep "mysql"
2. Install the client, rpm-ivh MySQL-client-5.1.7-0.i386.rpm
The following information is displayed.
warning: MySQL-client-5.1.7-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 Preparing... ########################################### [100%] 1:MySQL-client ########################################### [100%]
3. log on to MySQL, mysql-uroot-p, and press Enter,
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.1.7-standard Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>
4. Change the password, mysqladmin-u root password 'new-password'
Format: mysqladmin-u username-p old password new password such as mysqladmin-u root-p root (because there is no initial password, the old password is blank)
5. start, stop, and restart MySQL
Start: service mysqld start stop: service mysqld stop restart: service mysqld restart
References
Http://rq2-79.iteye.com/blog/175869
Http://www.jz123.cn/text/3035482.html
Http://www.jb51.net/ OS /RedHat/1262.html