Tomcat Ubuntu JDBC MySQL 配置

Ubuntu 下载镜像 

https://launchpad.net/ubuntu/+cdmirrors?_ga=2.234957249.1347477989.1553512358-1291320132.1553512358

安装完之后分辨率不正常,在vm 上 点击 “设备” —> 安装增强功能

1. Tomcat配置的时候,要注意修改start.sh 和 shutdown.sh, 里面需要根据Java 的版本来更改

可通过以下命令查看tomcat启动日志:

    cd tomcat/logs

   cat catlina.out
https://www.cnblogs.com/xizhu/p/9593543.html

2. 在 localhost 里面启动

2. 需要修改mysql的数据库密码

目前为123

在创建Tomcat用户的时候,如果出现如下错误,是因为之前忘记了数据库的密码,然后关掉了数据库校验

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

在 /etc/mysql/mysql.conf.d 内,

sudo vi mysqld.cnf 

把这个文件里里面的“--skip-grant-tables” 注释掉

3. 在/etc/mysql/my.cnf 里面修改了字符的编码形式

[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8

4. 

mysql> CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'test623';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

 

解决办法:

https://blog.csdn.net/hello_world_qwp/article/details/79551789

在mysql命令行中输入:

 set global validate_password_policy=LOW;

5. marven 的安装和配置

https://www.cnblogs.com/EasonJim/p/7203635.html

注意,至少需要在 ~/.bashrc 里面更改变量后,再往后进行

发布了25 篇原创文章 · 获赞 38 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/zhixiting5325/article/details/104060204