Install Mysql in Linux OS
Software: http://www.mysql.com/downloads/mysql/5.1.html#downloadsMySQL-client-community-5.1.66-1.rhel5.i386.rpm
MySQL-server-community-5.1.66-1.rhel5.i386.rpm
Install:
[*]# rpm -ivh MySQL-server-community-5.1.66-1.rhel5.i386.rpm
[*]Preparing... ###########################################
[*] file /usr/share/mysql/charsets/README from install of MySQL-server-community-5.1.66-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
[*] file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-community-5.1.66-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
[*] file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-community-5.1.66-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
[*] file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-community-5.1.66-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
[*] file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-community-5.1.66-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
[*] file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-community-5.1.66-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
[*] file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-community-5.1.66-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
[*]
[*]# yum -y remove mysql-libs-5.1.61*
[*]Removed:
[*]mysql-libs.i686 0:5.1.61-4.el6 Dependency Removed:
[*]cronie.i686 0:1.4.4-7.el6 cronie-anacron.i686 0:1.4.4-7.el6 crontabs.noarch 0:1.10-33.el6 postfix.i686 2:2.6.6-2.2.el6_1 sysstat.i686 0:9.0.4-20.el6
[*]
[*]Complete!
[*]
[*]# rpm -ivh MySQL-server-community-5.1.66-1.rhel5.i386.rpm
[*]Preparing... ###########################################
[*] 1:MySQL-server-community ###########################################
[*]
[*]PLEASE 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 localhost.localdomain password 'new-password'
[*]
[*]Alternatively you can run:
[*]/usr/bin/mysql_secure_installation
[*]
[*]which will also give you the option of removing the test
[*]databases and anonymous user created by default.This is
[*]strongly recommended for production servers.
[*]
[*]See the manual for more instructions.
[*]
[*]Please report any problems with the /usr/bin/mysqlbug script!
[*]
[*]Starting MySQL. SUCCESS!
[*]Giving mysqld 2 seconds to start
[*]
[*]
[*]# rpm -ivh MySQL-client-community-5.1.66-1.rhel5.i386.rpm
[*]Preparing... ###########################################
[*] 1:MySQL-client-community ###########################################
[*]#
[*]#
[*]# /usr/bin/mysqladmin -u root password 'pass'
[*]# mysql -u root -ppass
[*]Welcome to the MySQL monitor.Commands end with ; or \g.
[*]Your MySQL connection id is 2
[*]Server version: 5.1.66-community MySQL Community Server (GPL)
[*]
[*]Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
[*]
[*]Oracle is a registered trademark of Oracle Corporation and/or its
[*]affiliates. Other names may be trademarks of their respective
[*]owners.
[*]
[*]Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
[*]
[*]mysql> exit
[*]Bye
[*]#
页:
[1]