Install mysql in linux

Source: Internet
Author: User
Tags localhost mysql


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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.