MySQL学习12_rpm安装MySQL报** is needed by **错误

33 篇文章 0 订阅
11 篇文章 0 订阅

使用rpm -ivh MySQL-server-5.6.26-1.linux_glibc2.5.x86_64.rpm命令,安装MySQL时,遇到了下面的错误:

 

 
  1. [root@Master mysql]# rpm -ivh MySQL-server-5.6.26-1.linux_glibc2.5.x86_64.rpm

  2. warning: MySQL-server-5.6.26-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

  3. error: Failed dependencies:

  4. /bin/sh is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  5. /sbin/chkconfig is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  6. /usr/bin/perl is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  7. /usr/sbin/groupadd is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  8. /usr/sbin/useradd is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  9. coreutils is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  10. grep is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  11. libaio.so.1()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  12. libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  13. libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  14. libc.so.6()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  15. libc.so.6(GLIBC_2.2.5)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  16. libc.so.6(GLIBC_2.3)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  17. libc.so.6(GLIBC_2.3.4)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  18. libc.so.6(GLIBC_2.4)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  19. libcrypt.so.1()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  20. libcrypt.so.1(GLIBC_2.2.5)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  21. libdl.so.2()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  22. libdl.so.2(GLIBC_2.2.5)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  23. libgcc_s.so.1()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  24. libgcc_s.so.1(GCC_3.0)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  25. libm.so.6()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  26. libm.so.6(GLIBC_2.2.5)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  27. libpthread.so.0()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  28. libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  29. libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  30. librt.so.1()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  31. librt.so.1(GLIBC_2.2.5)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  32. libstdc++.so.6()(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  33. libstdc++.so.6(CXXABI_1.3)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  34. libstdc++.so.6(GLIBCXX_3.4)(64bit) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  35. procps is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  36. rtld(GNU_HASH) is needed by MySQL-server-5.6.26-1.linux_glibc2.5.x86_64

  37.  


做出修改,对命令进行限制,则能成功

rpm -ivh MySQL-server-5.6.26-1.linux_glibc2.5.x86_64.rpm  --force --nodeps

 

 
  1. [root@Master mysql]# rpm -ivh MySQL-server-5.6.26-1.linux_glibc2.5.x86_64.rpm --force --nodeps

  2. warning: MySQL-server-5.6.26-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

  3. Preparing... ########################################### [100%]

  4. 1:MySQL-server ########################################### [100%]

  5. 2016-01-20 00:41:38 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

  6. 2016-01-20 00:41:38 0 [Note] /usr/sbin/mysqld (mysqld 5.6.26) starting as process 2708 ...

  7. 2016-01-20 00:41:38 2708 [Note] InnoDB: Using atomics to ref count buffer pool pages

  8. 2016-01-20 00:41:38 2708 [Note] InnoDB: The InnoDB memory heap is disabled

  9. 2016-01-20 00:41:38 2708 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

  10. 2016-01-20 00:41:38 2708 [Note] InnoDB: Memory barrier is not used

  11. 2016-01-20 00:41:38 2708 [Note] InnoDB: Compressed tables use zlib 1.2.3

  12. 2016-01-20 00:41:38 2708 [Note] InnoDB: Using Linux native AIO

  13. 2016-01-20 00:41:38 2708 [Note] InnoDB: Using CPU crc32 instructions

  14. 2016-01-20 00:41:38 2708 [Note] InnoDB: Initializing buffer pool, size = 128.0M

  15. 2016-01-20 00:41:38 2708 [Note] InnoDB: Completed initialization of buffer pool

  16. 2016-01-20 00:41:38 2708 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

  17. 2016-01-20 00:41:38 2708 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

  18. 2016-01-20 00:41:38 2708 [Note] InnoDB: Database physically writes the file full: wait...

  19. 2016-01-20 00:41:38 2708 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

  20. 2016-01-20 00:41:38 2708 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

  21. 2016-01-20 00:41:38 2708 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

  22. 2016-01-20 00:41:38 2708 [Warning] InnoDB: New log files created, LSN=45781

  23. 2016-01-20 00:41:38 2708 [Note] InnoDB: Doublewrite buffer not found: creating new

  24. 2016-01-20 00:41:38 2708 [Note] InnoDB: Doublewrite buffer created

  25. 2016-01-20 00:41:38 2708 [Note] InnoDB: 128 rollback segment(s) are active.

  26. 2016-01-20 00:41:38 2708 [Warning] InnoDB: Creating foreign key constraint system tables.

  27. 2016-01-20 00:41:38 2708 [Note] InnoDB: Foreign key constraint system tables created

  28. 2016-01-20 00:41:38 2708 [Note] InnoDB: Creating tablespace and datafile system tables.

  29. 2016-01-20 00:41:38 2708 [Note] InnoDB: Tablespace and datafile system tables created.

  30. 2016-01-20 00:41:38 2708 [Note] InnoDB: Waiting for purge to start

  31. 2016-01-20 00:41:38 2708 [Note] InnoDB: 5.6.26 started; log sequence number 0

  32. A random root password has been set. You will find it in '/root/.mysql_secret'.

  33. 2016-01-20 00:41:39 2708 [Note] Binlog end

  34. 2016-01-20 00:41:39 2708 [Note] InnoDB: FTS optimize thread exiting.

  35. 2016-01-20 00:41:39 2708 [Note] InnoDB: Starting shutdown...

  36. 2016-01-20 00:41:40 2708 [Note] InnoDB: Shutdown completed; log sequence number 1625977

  37.  
  38.  
  39. 2016-01-20 00:41:40 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

  40. 2016-01-20 00:41:40 0 [Note] /usr/sbin/mysqld (mysqld 5.6.26) starting as process 2730 ...

  41. 2016-01-20 00:41:40 2730 [Note] InnoDB: Using atomics to ref count buffer pool pages

  42. 2016-01-20 00:41:40 2730 [Note] InnoDB: The InnoDB memory heap is disabled

  43. 2016-01-20 00:41:40 2730 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

  44. 2016-01-20 00:41:40 2730 [Note] InnoDB: Memory barrier is not used

  45. 2016-01-20 00:41:40 2730 [Note] InnoDB: Compressed tables use zlib 1.2.3

  46. 2016-01-20 00:41:40 2730 [Note] InnoDB: Using Linux native AIO

  47. 2016-01-20 00:41:40 2730 [Note] InnoDB: Using CPU crc32 instructions

  48. 2016-01-20 00:41:40 2730 [Note] InnoDB: Initializing buffer pool, size = 128.0M

  49. 2016-01-20 00:41:40 2730 [Note] InnoDB: Completed initialization of buffer pool

  50. 2016-01-20 00:41:40 2730 [Note] InnoDB: Highest supported file format is Barracuda.

  51. 2016-01-20 00:41:40 2730 [Note] InnoDB: 128 rollback segment(s) are active.

  52. 2016-01-20 00:41:40 2730 [Note] InnoDB: Waiting for purge to start

  53. 2016-01-20 00:41:40 2730 [Note] InnoDB: 5.6.26 started; log sequence number 1625977

  54. 2016-01-20 00:41:40 2730 [Note] Binlog end

  55. 2016-01-20 00:41:40 2730 [Note] InnoDB: FTS optimize thread exiting.

  56. 2016-01-20 00:41:40 2730 [Note] InnoDB: Starting shutdown...

  57. 2016-01-20 00:41:43 2730 [Note] InnoDB: Shutdown completed; log sequence number 1625987

  58.  
  59.  
  60.  
  61.  
  62. A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !

  63. You will find that password in '/root/.mysql_secret'.

  64.  
  65. You must change that password on your first connect,

  66. no other statement but 'SET PASSWORD' will be accepted.

  67. See the manual for the semantics of the 'password expired' flag.

  68.  
  69. Also, the account for the anonymous user has been removed.

  70.  
  71. In addition, you can run:

  72.  
  73. /usr/bin/mysql_secure_installation

  74.  
  75. which will also give you the option of removing the test database.

  76. This is strongly recommended for production servers.

  77.  
  78. See the manual for more instructions.

  79.  
  80. Please report any problems at http://bugs.mysql.com/

  81.  
  82. The latest information about MySQL is available on the web at

  83.  
  84. http://www.mysql.com

  85.  
  86. Support MySQL by buying support/licenses at http://shop.mysql.com

  87.  
  88. New default config file was created as /usr/my.cnf and

  89. will be used by default by the server when you start it.

  90. You may edit this file to change server settings

  91.  
  92. [root@Master mysql]#

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值