docker.start.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. docker run -itd --name mysql8 -p 3307:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v D:/MySQL/docker_mysql:/var/lib/mysql mysql:8.0.28-oracle
  2. docker run -itd --name mysql82 -p 3312:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 mysql:8.0.28-oracle
  3. mysqldump -uroot -pr6kEwqWU9!v3 -P3307 --databases qmt_stocks_whole >d:/qmt_stocks_whole.sql
  4. # version order 1
  5. docker run -itd --name mysql8 -p 3307:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v C:/docker_mysql/stock_data:/var/lib/mysql -v C:/docker_mysql/config/mysql.cnf:/etc/my.cnf daocloud.io/library/mysql:8.0.21
  6. docker run -itd --name mysql8033 -p 3308:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v C:/docker_mysql/0833:/var/lib/mysql -v C:/docker_mysql/conf:/etc/mysql mysql:8.0.33
  7. docker run -itd --name mysql8033 -p 3308:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v C:/docker_mysql/mysql.cnf:/etc/my.cnf mysql:8.0.33-debian
  8. docker run -itd -p 3307:3306 --name mysql8033 -e character-set-server=utf8mb4 --privileged=true --restart unless-stopped -v C:/docker_mysql/stock_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33 --skip-log-bin --disable-log-bin --lower_case_table_names=1
  9. docker run -itd -p 3307:3306 --name mysql8033 -e character-set-server=utf8mb4 --privileged=true --restart unless-stopped -v C:/docker_mysql/stock_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33 --lower_case_table_names=1 --skip-log-bin --disable-log-bin
  10. 20230515
  11. docker run -itd -p 3307:3306 --name mysql8033 --privileged=true --restart unless-stopped -v C:/docker_mysql/stock_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33
  12. docker run -itd -p 3309:3306 --name mysqltest -e character-set-server=utf8mb4 --privileged=true --restart unless-stopped -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33 --skip-log-bin --disable-log-bin --log-error=/var/lib/mysql/err.log
  13. # For advice on how to change settings please see
  14. # http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
  15. [mysqld]
  16. #
  17. # Remove leading # and set to the amount of RAM for the most important data
  18. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  19. # innodb_buffer_pool_size = 128M
  20. #
  21. # Remove leading # to turn on a very important data integrity option: logging
  22. # changes to the binary log between backups.
  23. # log_bin
  24. #
  25. # Remove leading # to set options mainly useful for reporting servers.
  26. # The server defaults are faster for transactions and fast SELECTs.
  27. # Adjust sizes as needed, experiment to find the optimal values.
  28. # join_buffer_size = 128M
  29. # sort_buffer_size = 2M
  30. # read_rnd_buffer_size = 2M
  31. # Remove leading # to revert to previous value for default_authentication_plugin,
  32. # this will increase compatibility with older clients. For background, see:
  33. # https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin
  34. # default-authentication-plugin=mysql_native_password
  35. skip-log-bin
  36. disable-log-bin
  37. skip-host-cache
  38. skip-name-resolve
  39. datadir=/var/lib/mysql
  40. socket=/var/run/mysqld/mysqld.sock
  41. secure-file-priv=/var/lib/mysql-files
  42. user=mysql
  43. max_connections=10000
  44. max_user_connections=5000
  45. character-set-server=utf8mb4
  46. thread_stack=4096k
  47. innodb_log_file_size=200M
  48. pid-file=/var/run/mysqld/mysqld.pid
  49. [client]
  50. socket=/var/run/mysqld/mysqld.sock
  51. character-set-server=utf8mb4
  52. !includedir /etc/mysql/conf.d/
  53. # For advice on how to change settings please see
  54. # http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
  55. [mysqld]
  56. #
  57. # Remove leading # and set to the amount of RAM for the most important data
  58. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  59. # innodb_buffer_pool_size = 128M
  60. #
  61. # Remove leading # to turn on a very important data integrity option: logging
  62. # changes to the binary log between backups.
  63. # log_bin
  64. #
  65. # Remove leading # to set options mainly useful for reporting servers.
  66. # The server defaults are faster for transactions and fast SELECTs.
  67. # Adjust sizes as needed, experiment to find the optimal values.
  68. # join_buffer_size = 128M
  69. # sort_buffer_size = 2M
  70. # read_rnd_buffer_size = 2M
  71. # Remove leading # to revert to previous value for default_authentication_plugin,
  72. # this will increase compatibility with older clients. For background, see:
  73. # https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin
  74. # default-authentication-plugin=mysql_native_password
  75. skip-host-cache
  76. skip-name-resolve
  77. datadir=/var/lib/mysql
  78. socket=/var/run/mysqld/mysqld.sock
  79. secure-file-priv=/var/lib/mysql-files
  80. log_error=/var/lib/mysql/error.log
  81. user=mysql
  82. max_connections=2000
  83. max_user_connections=1000
  84. max_connect_errors=1000000
  85. thread_cache_size=300
  86. server-id = 1
  87. character-set-server = utf8mb4
  88. pid-file=/var/run/mysqld/mysqld.pid
  89. [client]
  90. socket=/var/run/mysqld/mysqld.sock
  91. !includedir /etc/mysql/conf.d/