Skip to content
Snippets Groups Projects
Commit e74b1bc1 authored by Antoine Rey's avatar Antoine Rey
Browse files

#141 Configure Unicode and UTF-8 MySQL database for Chinese language

parent b68d7fc4
No related branches found
No related tags found
No related merge requests found
CREATE DATABASE IF NOT EXISTS petclinic;
ALTER DATABASE petclinic
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON petclinic.* TO pc@localhost IDENTIFIED BY 'pc';
USE petclinic;
......@@ -57,4 +62,4 @@ CREATE TABLE IF NOT EXISTS visits (
visit_date DATE,
description VARCHAR(255),
FOREIGN KEY (pet_id) REFERENCES pets(id)
) engine=InnoDB;
\ No newline at end of file
) engine=InnoDB;
......@@ -26,7 +26,7 @@ jpa.database=HSQL
# MySQL Settings
#jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://localhost:3306/petclinic
#jdbc.url=jdbc:mysql://localhost:3306/petclinic?useUnicode=true&characterEncoding=UTF-8
#jdbc.username=root
#jdbc.password=petclinic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment