<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ### 安裝 ``` cnpm i --save egg-mysql ``` ### 開啟插件配置 ``` // config/plugin.js 'use strict'; module.exports = { mysql:{ enable: true, package: 'egg-mysql', } }; ``` ### 配置數據庫信息 ``` // 單數據庫 // config/database.js exports.mysql = { // 單數據庫信息配置 client: { // host host: 'mysql.com', // 端口號 port: '3306', // 用戶名 user: 'test_user', // 密碼 password: 'test_password', // 數據庫名 database: 'test', }, // 是否加載到 app 上,默認開啟 app: true, // 是否加載到 agent 上,默認關閉 agent: false, }; // 多數據庫 exports.mysql = { clients: { // clientId, 獲取client實例,需要通過 app.mysql.get('clientId') 獲取 db1: { // host host: 'mysql.com', // 端口號 port: '3306', // 用戶名 user: 'test_user', // 密碼 password: 'test_password', // 數據庫名 database: 'test', }, db2: { // host host: 'mysql2.com', // 端口號 port: '3307', // 用戶名 user: 'test_user', // 密碼 password: 'test_password', // 數據庫名 database: 'test', }, // ... }, // 所有數據庫配置的默認值 default: { }, // 是否加載到 app 上,默認開啟 app: true, // 是否加載到 agent 上,默認關閉 agent: false, }; // config.default.js const database = require("./database.js"); module.exports = appInfo => { const config = exports = { ...database }; return { ...config, ...userConfig, }; }; ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看