VPS侦探论坛

 找回密码
 注册
查看: 210|回复: 3

1.7安装MySQL5.7出错

[复制链接]
发表于 2020-12-2 10:37:23 | 显示全部楼层 |阅读模式



系统是CentOS7,内存1GB

  1. [ 44%] Building CXX object sql/CMakeFiles/sql.dir/item_geofunc.cc.o
  2. virtual memory exhausted: Cannot allocate memory
  3. make[2]: *** [sql/CMakeFiles/sql.dir/item_geofunc.cc.o] Error 1
  4. make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
  5. make: *** [all] Error 2
  6. groupadd: group 'mysql' already exists
  7. useradd: user 'mysql' already exists
  8. include/mysql.sh: line 607: /usr/local/mysql/bin/mysqld: No such file or directory
  9. Created symlink from /etc/systemd/system/multi-user.target.wants/mysql.service to /etc/systemd/system/mysql.service.
  10. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  11. Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
  12. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  13. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  14. ERROR! MySQL server PID file could not be found!
  15. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  16. Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
  17. include/mysql.sh: line 43: /usr/local/mysql/bin/mysqladmin: No such file or directory
  18. failed, try other way...
  19. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  20. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  21. ERROR! MySQL server PID file could not be found!
  22. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  23. Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
  24. include/mysql.sh: line 53: /usr/local/mysql/bin/mysql: No such file or directory
  25. Set password failed!
  26. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  27. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  28. ERROR! MySQL server PID file could not be found!
  29. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  30. Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
  31. include/main.sh: line 744: /usr/local/mysql/bin/mysql: No such file or directory
  32. Update root password...
  33. include/main.sh: line 744: /usr/local/mysql/bin/mysql: No such file or directory
  34. ... Failed!
  35. Remove anonymous users...
  36. include/main.sh: line 744: /usr/local/mysql/bin/mysql: No such file or directory
  37. include/main.sh: line 744: /usr/local/mysql/bin/mysql: No such file or directory
  38. ... Failed!
  39. Disallow root login remotely...
  40. include/main.sh: line 744: /usr/local/mysql/bin/mysql: No such file or directory
  41. ... Failed!
  42. Remove test database...
  43. include/main.sh: line 744: /usr/local/mysql/bin/mysql: No such file or directory
  44. ... Failed!
  45. Reload privilege tables...
  46. include/main.sh: line 744: /usr/local/mysql/bin/mysql: No such file or directory
  47. ... Failed!
  48. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  49. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  50. ERROR! MySQL server PID file could not be found!
  51. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  52. Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
  53. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  54. ERROR! MySQL server PID file could not be found!
  55. Add mysql service at system startup...
  56. /etc/init.d/mysql: line 239: my_print_defaults: command not found
  57. Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
  58. Clean database src directory...
  59. Error: MySQL install failed.
复制代码


美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-12-2 11:46:12 | 显示全部楼层


已解决,还是内存不足的问题,设置个swap解决了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-12-2 12:27:34 | 显示全部楼层



virtual memory exhausted: Cannot allocate memory
内存不够用,只有1GB内存建议5.6或5.5
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-12-2 13:24:57 | 显示全部楼层



licess 发表于 2020-12-2 12:27
virtual memory exhausted: Cannot allocate memory
内存不够用,只有1GB内存建议5.6或5.5

没办法,因为有个json字段 只能用5.7了。已经通过设置swap解决了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2021-1-24 17:48 , Processed in 0.060052 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表