在CentOS 6安装Mysql问题

    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 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/xliujingweix/archive/2012/11/02/2751831.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值