Install mysql in linux. download and install Package 1. mySQL-client-5.6.5_m8-1.linux2.6.i386.rpm2.MySQL-server-5.6.5_m8-1.linux2.6.i386.rpm 2. start installation 1) The Installation server is running the following command in a directory with two rmp files: [root @ localhost mysql] # rpm-ivh MySQL-server-5.6.5_m8-1.linux2.6.i386.rpm displays the following information.
Warning: MySQL-server-5.6.5_m8-1.linux2.6.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 www.2cto.com Preparing... ######################################## ### [100%] 1: mySQL-server ##################################### ###### [100%]... (Omitted) /usr/bin/mysqladmin-u root password 'new-password'/usr/bin/mysqladmin-u root-h test1 password 'new-password '...... (Omitted) If Starting mysqld daemon with databases from/var/lib/mysql displays the above information, the server has been installed. Run netstat to check whether the Mysql port is opened. If yes, the service is started and the installation is successful. The default Mysql port is 3306. Start mysql [root @ localhost mysql] #/etc/init. d/mysql start check port 3306 whether to enable [root @ localhost mysql] # netstat-nat www.2cto.com 2) install the client to run the following command: [root @ test1 local] # rpm-ivh MySQL-client-5.6.5_m8-1.linux2.6.i386.rpmwarning: mySQL-client-5.6.5_m8-1.linux2.6.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5Preparing... ######################################## ### [100%] 1: mySQL-client ############################## ############ [100%] indicates that the installation is complete.
III. log on to mysql [root @ localhost mysql] # mysqlWelcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 1 to server version: 4.0.16-standardType 'help; 'or' \ H' for help. type '\ C' to clear the buffer. mysql> the prompt "mysql>" appears. Congratulations! The installation is successful!