VPS侦探论坛

 找回密码
 注册
查看: 2745|回复: 1

my.cny中加入sql_mode=NO_ENGINE_SUBSTITUTION;

[复制链接]
发表于 2019-4-3 11:35:42 | 显示全部楼层 |阅读模式

本帖最后由 一人天 于 2019-4-3 11:38 编辑

my.cny中加入sql_mode=NO_ENGINE_SUBSTITUTION;后出现ERROR! The server quit without updating PID file如何处理


  1. [client]
  2. #password        = your_password
  3. port                = 3306
  4. socket                = /tmp/mysql.sock

  5. [mysqld]
  6. port                = 3306
  7. socket                = /tmp/mysql.sock
  8. datadir = /data/mysql
  9. default_storage_engine = MyISAM
  10. #skip-innodb
  11. skip-external-locking
  12. key_buffer_size = 32M
  13. max_allowed_packet = 1M
  14. table_open_cache = 128
  15. sort_buffer_size = 768K
  16. net_buffer_length = 8K
  17. read_buffer_size = 768K
  18. read_rnd_buffer_size = 512K
  19. myisam_sort_buffer_size = 8M
  20. thread_cache_size = 16
  21. query_cache_size = 16M
  22. tmp_table_size = 32M

  23. #skip-networking
  24. max_connections = 500
  25. max_connect_errors = 100
  26. open_files_limit = 65535

  27. #log-bin=mysql-bin
  28. binlog_format=mixed
  29. server-id        = 1
  30. expire_logs_days = 10

  31. #innodb_file_per_table = 1
  32. #innodb_data_home_dir = /data/mysql
  33. #innodb_data_file_path = ibdata1:10M:autoextend
  34. #innodb_log_group_home_dir = /data/mysql
  35. #innodb_buffer_pool_size = 16M
  36. #innodb_additional_mem_pool_size = 2M
  37. #innodb_log_file_size = 5M
  38. #innodb_log_buffer_size = 8M
  39. #innodb_flush_log_at_trx_commit = 1
  40. #innodb_lock_wait_timeout = 50

  41. [mysqldump]
  42. quick
  43. max_allowed_packet = 16M

  44. [mysql]
  45. no-auto-rehash

  46. [myisamchk]
  47. key_buffer_size = 32M
  48. sort_buffer_size = 768K
  49. read_buffer = 2M
  50. write_buffer = 2M

  51. [mysqlhotcopy]
  52. interactive-timeout

复制代码


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-4-3 15:53:52 | 显示全部楼层


你有不是写php代码或sql语句加啥分号
mysql报错得发mysql错误日志,日志里肯定有明确的说明
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-22 23:17 , Processed in 0.026073 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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