标签:连接数 use net zone rac ati and win 成功
Quarkus很酷,但这些错误一点不酷 :(
时隔多年又开始研究程序......
在官网下载并解压64位版本,然后在根目录下加入my.ini文件
[mysqld] basedir=D:\\mysql-8.0.21-winx64\datadir=D:\\mysql-8.0.21-winx64\\data
然后
mysqld --initialize mysqld --install mysql8.0 net start mysql8.0 mysql -u root -p
通过mysql一连,发现没密码了,接着做下一步
net stop mysql8.0 mysqld --shared-memory --skip-grant-tables mysql mysql>FLUSH PRIVILEGES mysql>ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘welcome1‘ mysql>quit
把密码刷成 welcome1,然后登录
mysql> create database quarkus; mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | quarkus | | sys | +--------------------+ 5 rows in set (0.00 sec)
mvn compile quarkus:dev ....... mysql The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone. ........
需要修改application.properties文件,在url后面添加一串东西
quarkus.datasource.url = jdbc:mysql://localhost:3306/quarkus?serverTimezone=UTC&characterEncoding=utf-8 quarkus.datasource.driver = com.mysql.cj.jdbc.Driver quarkus.datasource.username = root quarkus.datasource.password = welcome1 quarkus.hibernate-orm.dialect = org.hibernate.dialect.MySQL8Dialect quarkus.hibernate-orm.dialect.storage-engine = InnoDB quarkus.hibernate-orm.database.generation = drop-and-create
按照官方文档,无耐怎么搞都是出错。
curl -H "Content-Type:application/json" -X POST --data ‘{"name":"Banana","price":2}‘ http://localhost:8080/product
在postman上倒是成功了,目前没发现为啥命令行不行
还有各种大坑稍后逐步奉上...
标签:连接数 use net zone rac ati and win 成功
原文地址:https://www.cnblogs.com/ericnie/p/13472870.html