db.py 925 B

1234567891011121314151617181920212223242526272829303132
  1. # -*- coding: utf-8 -*-
  2. # @Time : 2024/6/19
  3. # @Author : 魏志亮
  4. mysql_config = \
  5. {'plt': {'database': 'energy_prod',
  6. 'host': '192.168.50.233',
  7. 'password': 'admin123456',
  8. 'port': 3306,
  9. 'user': 'admin'},
  10. 'plt_connect_pool_config':
  11. {'blocking': True,
  12. 'charset': 'utf8mb4',
  13. 'maxcached': 5,
  14. 'maxconnections': 10,
  15. 'maxshared': 0,
  16. 'mincached': 2,
  17. 'setsession': []},
  18. 'trans': {'database': 'energy_data_prod',
  19. 'host': '192.168.50.235',
  20. 'password': 'admin123456',
  21. 'port': 30306,
  22. 'user': 'root'},
  23. 'trans_connect_pool_config':
  24. {'blocking': True,
  25. 'charset': 'utf8',
  26. 'maxcached': 20,
  27. 'maxconnections': 10,
  28. 'maxshared': 0,
  29. 'mincached': 1,
  30. 'setsession': []}
  31. }