Note: This installation process is only a critical step and is only suitable for beginners learning to use
First, the environment preparation
64-bit operating system, SUSE version 11sp3. (Note: Kingtry is my host name)
kingtry:~ # uname-alinux Kingtry 3.0.76-0.11-default #1 SMP Fri June 08:21:43 UTC (ccab990) x86_64 x86_64 x86_64 G nu/linuxkingtry:~ # cat/etc/suse-release SuSE Linux Enterprise Server One (x86_64) VERSION = 11PATCHLEVEL = 3
Second, software preparation
mysql-client-community-5.1.73-1.sles11.x86_64.rpm
mysql-server-community-5.1.73-1.sles11.x86_64.rpm
Third, the installation process
kingtry:~ # rpm -ivh mysql-server-community-5.1.73-1.sles11.x86_64.rpm mysql-client-community-5.1.73-1.sles11.x86_64.rpm preparing... ########################################### [100%] 1:mysql-client-community ########################################### [ 50%] 2:mysql-server-community ########################################### [100%]insserv : service network is missed in the runlevels 4 to use service mysqlmysql 0:off 1:off 2:on 3:on 4:on 5:on 6:offplease remember to set a password for the mysql root user ! to do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password ' New-password '/usr/bin/mysqladmin -u root -h kingtry password ' New-password ' alternatively you can run:/usr /bin/mysql_secure_installationwhich will also give you the option of Removing the testdatabases and anonymous user created by default. this isstrongly recommended for production servers. See the manual for more instructions. please report any problems with the /usr/bin/mysqlbug script! Starting mysql. donegiving mysqld 2 seconds to start
Iv. Installation Complete
Super Simple installation process, only one command above, and after the installation of the service automatically started.
The current version root password is empty
Kingtry:~ # mysqlwelcome to the mysql monitor. commands end with ; or \g.your mysql connection id is 1server version: 5.1.73-community MySQL Community Server (GPL) copyright (c) 2000, 2013 , oracle and/or its affiliates. all rights reserved. oracle is a registered trademark of oracle corporation and/or Itsaffiliates. other names may be trademarks of their respectiveowners . type ' help; ' or ' \h ' for help. Type ' \c ' to clear the current input statement.mysql> show databases;+--------------------+| database |+--------------------+| information_schema | | mysql | | test |+-------- ------------+3 rows in set (0.00 sec) mysql>
SUSE11 Installation mysql5.1.73:rpm Installation Method (ultra-simple entry-level installation)