配置mysql的疑问

q9nx 2020-10-10 592

文档上写

0.0.3. 修改服务配置

进入到config目录下,修改c3p0-config.xml,正确配置 db地址用户名密码

        <!--MySQL数据库驱动程序-->        <property name="driverClass">com.mysql.jdbc.Driver</property>        <!--MySQL数据库地址-->        <property name="jdbcUrl">jdbc:mysql://localhost:3306/wfchat?useSSL=false&serverTimezone=GMT&allowPublicKeyRetrieval=true</property>        <!--MySQL数据库用户名-->        <property name="user">root</property>        <!--MySQL数据库密码-->        <property name="password">xxxxxx</property>

mysql的地址是这个   jdbc:mysql://localhost:3306/wfchat?useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8

我想问是不是要把wfchat改成自己的数据库就可以了呢?   h还是必须得用wfchat?  mysql的jdbc地址怎么看啊

最新回复 (2)
  • q9nx 2020-10-10
    引用 2
    配置好了要不要重启服务啊? 我把wfchat改成自己的数据库,然后没有重启服务,发了几次消息还是空空乳也
  • HeavyRain 2020-10-10
    引用 3
    先在IM服务的配置文件wildfirechat.conf 中配置使用mysql数据库,然后在c3p0配置文件中配置地址,可以更改数据库名称,但要保证专库专用,不要和别的应用的库混在一起使用。所有的配置文件修改必须重启才能生效
返回