Why is Hibernate not creating database for MySQL?

后端 未结 3 1626
Happy的楠姐
Happy的楠姐 2021-01-19 03:48

I have following hibernate.cfg.xml:




        
3条回答
  •  一生所求
    2021-01-19 04:29

    MySQL will create your schema within a database, but will not create your actual database for you. You must have an existing database called 'userdb' in your local MySQL installation (log in and run something like 'create database userdb') before you run the schema export in hibernate.

提交回复
热议问题