In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "the process of installing mysql under the linux system". In the daily operation, I believe that many people have doubts about the process of installing mysql under the linux system. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubts of "the process of installing mysql under the linux system". Next, please follow the editor to study!
Install mysql under linux system
one。 Install the package
1.MySQL-client-5.6.5_m8-1.linux2.6.i386.rpm
2.MySQL-server-5.6.5_m8-1.linux2.6.i386.rpm
two。 Start installation
1) install the server side
Run the following command in a directory with two rmp files:
[root@localhost] # rpm-ivh MySQL-server-5.6.5_m8-1.linux2.6.i386.rpm
The following information is displayed.
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%]
. (omit display)
/ usr/bin/mysqladmin-u root password' new-password'
/ usr/bin/mysqladmin-u root-h test1 password' new-password'
. (omit display)
Starting mysqld daemon with databases from / var/lib/mysql
If the above information appears, the server installation is complete. Test whether you can run netstat successfully to see whether the Mysql port is open. If it is opened, it means that the service has been started and installed successfully. The default port for Mysql is 3306.
Start mysql
[root@localhost mysql] # / etc/init.d/mysql start
Check to see if port 3306 is open
[root@localhost mysql] # netstat-nat
Www.2cto.com
2) install the client
Run the following command:
[root@test1 local] # rpm-ivh MySQL-client-5.6.5_m8-1.linux2.6.i386.rpm
Warning:MySQL-client-5.6.5_m8-1.linux2.6.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... # [100%]
1:MySQL-client # # [100%]
Shows that the installation is complete.
three。 Log in to mysql
[root@localhost mysql] # mysql
Welcome to the MySQL monitor. Commands end with; or\ g.
Your MySQL connection id is 1 to server version: 4.0.16-standard
Type 'help;' or'\ h' for help. Type'\ c'to clear the buffer.
Mysql >
At this point, the study of "the process of installing mysql under the linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.