xliujingweix

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
    1. [root@localhost software]# rpm -ivh MySQL-server-community-5.1.66-1.rhel5.i386.rpm 
    2. Preparing...                ########################################### [100%] 
    3.         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 
    4.         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 
    5.         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 
    6.         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 
    7.         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 
    8.         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 
    9.         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 
    10.  
    11. [root@localhost share]# yum -y remove mysql-libs-5.1.61* 
    12. Removed: 
    13.   mysql-libs.i686 0:5.1.61-4.el6                                           Dependency Removed: 
    14.   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      
    15.  
    16. Complete! 
    17.  
    18. [root@localhost software]# rpm -ivh MySQL-server-community-5.1.66-1.rhel5.i386.rpm 
    19. Preparing...                ########################################### [100%] 
    20.    1:MySQL-server-community ########################################### [100%] 
    21.  
    22. PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! 
    23. To do so, start the server, then issue the following commands: 
    24.  
    25. /usr/bin/mysqladmin -u root password 'new-password' 
    26. /usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password' 
    27.  
    28. Alternatively you can run: 
    29. /usr/bin/mysql_secure_installation 
    30.  
    31. which will also give you the option of removing the test 
    32. databases and anonymous user created by default.  This is 
    33. strongly recommended for production servers. 
    34.  
    35. See the manual for more instructions. 
    36.  
    37. Please report any problems with the /usr/bin/mysqlbug script! 
    38.  
    39. Starting MySQL. SUCCESS!  
    40. Giving mysqld 2 seconds to start 
    41.  
    42.  
    43. [root@localhost software]# rpm -ivh MySQL-client-community-5.1.66-1.rhel5.i386.rpm 
    44. Preparing...                ########################################### [100%] 
    45.    1:MySQL-client-community ########################################### [100%] 
    46. [root@localhost software]#  
    47. [root@localhost software]#  
    48. [root@localhost software]# /usr/bin/mysqladmin -u root password 'pass' 
    49. [root@localhost software]# mysql -u root -ppass 
    50. Welcome to the MySQL monitor.  Commands end with ; or \g. 
    51. Your MySQL connection id is 2 
    52. Server version: 5.1.66-community MySQL Community Server (GPL) 
    53.  
    54. Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 
    55.  
    56. Oracle is a registered trademark of Oracle Corporation and/or its 
    57. affiliates. Other names may be trademarks of their respective 
    58. owners. 
    59.  
    60. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 
    61.  
    62. mysql> exit 
    63. Bye 
    64. [root@localhost software]# 
posted on 2012-11-02 20:27  xliujingweix  阅读(231)  评论(0编辑  收藏  举报