账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    为何mysql要用mariaDB的驱动去连接?
    • 2019-11-26 00:00
    • 10
    26
    0

    我的mysql数据库信息如下:

    `Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 16338
    Server version: 5.7.25-log MySQL Community Server (GPL)
    
    Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective owners.`
    

    我的springboot工程中,配置

    spring:
      datasource:
         driver-class-name: org.mariadb.jdbc.Driver
         

    启动起来没有问题,但是如果改成mysql的驱动(com.mysql.cj.jdbc.Driver或者 com.mysql.jdbc.Driver),反而启动不了
    怎么回事?

    2
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 10 元积分
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部