config.local.ts 363 B

123456789101112131415161718
  1. import { EggAppConfig, PowerPartial } from 'egg';
  2. export default () => {
  3. const config: PowerPartial<EggAppConfig> = {
  4. mysql: {
  5. client: {
  6. host: 'localhost',
  7. port: '3306',
  8. user: 'tanjiawei',
  9. password: '123456',
  10. database: 'evaluation',
  11. },
  12. app: true,
  13. agent: true,
  14. },
  15. };
  16. return config;
  17. };