当前位置:论坛首页 > Linux面板 > 求助

【待反馈】mysql启动不了没有报错

发表在 Linux面板2023-4-11 22:20 [复制链接] 3 1979

各位大佬求助,看图
微信截图_20230411211544.png
微信截图_20230411211556.png
微信截图_20230411222157.png
使用道具 举报 只看该作者 回复
发表于 2023-4-11 22:55:26 | 显示全部楼层
您好,您那边检查下/etc/下的my.cnf配置文件内容是否变了,如my.cnf配置文件内容变动也会导致MySQL无法正常启动。
以及MySQL的运行日志无法生成之类的。
如my.cnf文件变动了的话,您可以尝试将下方的内容复制到my.cnf内
  1. [client]
  2. #password        = your_password
  3. port                = 3306
  4. socket                = /tmp/mysql.sock

  5. [mysqld]
  6. binlog_cache_size = 64K
  7. thread_stack = 256K
  8. join_buffer_size = 1024K
  9. query_cache_type = 1
  10. max_heap_table_size = 64M
  11. port                = 3306
  12. socket                = /tmp/mysql.sock
  13. datadir = /data/www/server/data
  14. default_storage_engine = InnoDB
  15. performance_schema_max_table_instances = 400
  16. table_definition_cache = 400
  17. skip-external-locking
  18. key_buffer_size = 64M
  19. max_allowed_packet = 100G
  20. table_open_cache = 256
  21. sort_buffer_size = 1M
  22. net_buffer_length = 4K
  23. read_buffer_size = 1M
  24. read_rnd_buffer_size = 512K
  25. myisam_sort_buffer_size = 16M
  26. thread_cache_size = 32
  27. query_cache_size = 32M
  28. tmp_table_size = 64M
  29. sql-mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

  30. explicit_defaults_for_timestamp = true
  31. #skip-name-resolve
  32. max_connections = 100
  33. max_connect_errors = 100
  34. open_files_limit = 65535

  35. log-bin=mysql-bin
  36. binlog_format=mixed
  37. server-id = 1
  38. expire_logs_days = 10
  39. slow_query_log=1
  40. slow-query-log-file=/data/www/server/data/mysql-slow.log
  41. long_query_time=3
  42. #log_queries_not_using_indexes=on
  43. early-plugin-load = ""


  44. innodb_data_home_dir = /data/www/server/data
  45. innodb_data_file_path = ibdata1:10M:autoextend
  46. innodb_log_group_home_dir = /data/www/server/data
  47. innodb_buffer_pool_size = 256M
  48. innodb_log_file_size = 128M
  49. innodb_log_buffer_size = 32M
  50. innodb_flush_log_at_trx_commit = 1
  51. innodb_lock_wait_timeout = 50
  52. innodb_max_dirty_pages_pct = 90
  53. innodb_read_io_threads = 2
  54. innodb_write_io_threads = 2

  55. [mysqldump]
  56. user=root
  57. password="HpnwyT6MkWx3ABan"
  58. quick
  59. max_allowed_packet = 500M

  60. [mysql]
  61. no-auto-rehash

  62. [myisamchk]
  63. key_buffer_size = 64M
  64. sort_buffer_size = 1M
  65. read_buffer = 2M
  66. write_buffer = 2M

  67. [mysqlhotcopy]
  68. interactive-timeout
复制代码

使用道具 举报 回复 支持 反对
发表于 2023-4-11 23:34:14 | 显示全部楼层
堡塔运维向樛木 发表于 2023-4-11 22:55
您好,您那边检查下/etc/下的my.cnf配置文件内容是否变了,如my.cnf配置文件内容变动也会导致MySQL无法正常 ...

收到,我一开始按照,就一直无法启动,配置文件一个字符都没有改过
使用道具 举报 回复 支持 反对
发表于 2023-4-11 23:34:49 | 显示全部楼层
宝塔用_122b 发表于 2023-4-11 23:34
收到,我一开始按照,就一直无法启动,配置文件一个字符都没有改过

按照 => 安装
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表