In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "the installation steps of mysql5.5 for linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the installation steps of mysql5.5 for linux.
Download address: http://dev.mysql.com/downloads/mysql/5.5.html#downloads
After entering, there will be a choice system.
After choosing linux-generic, there are many products to choose from. We only need to download the following two.
Server:
Linux-Generic 2.6 (x86, 32-bit), RPM Package
MySQL Server 5.5.20 48.9M
(MySQL-server-5.5.20-1.linux2.6.i386.rpm) MD5: 517e95a5d9ecc6d0f171dfbdfb9e62fb
Client:
Linux-Generic 2.6 (x86, 32-bit), RPM Package
Client Utilities 5.5.20 16.2M
(MySQL-client-5.5.20-1.linux2.6.i386.rpm) MD5: 3aca3154617e6457e7a08eaf41c43a7a
After completion, you will get:
Enter the download file so the directory is installed
Such as:
> rpm-ivh MySQL-server-5.5.20-1.linux2.6.i385.rpm
> rpm-ivh MySQL-client-5.5.20-1.linux2.6.i385.rpmp
Start mysql
> service mysql start
The command to log in to MySQL is mysql, and the syntax for mysql is as follows:
Mysql [- u username] [- h host] [- p [password]] [dbname]
Username and password are the user name and password of MySQL, respectively. The initial administrative account of mysql is root. There is no password. Note: this root user is not a system user. The default user of MySQL is root, and since you don't have a password at first, you just need to type it the first time you enter.
Then enter mysql
Root@test1 local] # 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 >
The "mysql >" prompt appears. Congratulations, the installation is successful!
Change login password
MySQL does not have a password by default, and the importance of adding a password after installation is self-evident.
1. Command
Usr/bin/mysqladmin-u root password' new-password'
Format: mysqladmin-u username-p old password password new password
Type the following command:
[root@test1 local] # / usr/bin/mysqladmin-u root password 123456
Note: since root does not have a password at the beginning, the-p old password can be omitted
At this point, I believe that everyone on the "mysql5.5 for linux installation steps" have a deeper understanding, might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.