数据库
六块五的弟弟
这个作者很懒,什么都没留下…
展开
-
Mysql数据库的安装配置
首先,到mysql官网下载压缩包。下载后进行解压,不需要安装。然后在此目录下添加一个ini文件进行配置数据库。配置信息(下面有注意事项!!!!):[mysqld]#设置时区为东八区,此项设置后,在连接MySQL的时候可以不用每次都手动设置时区#default-time-zone = '+8:00'# 设置3306端口号port=3306# 允许最大连接数max_connections=200# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统max_con原创 2021-06-21 10:19:32 · 126 阅读 · 0 评论 -
MySQL 添加外键的两种方式
第一种方式:通过创建表的过程中进行添加外键,和其他表的字段进行联系。create table teacher( id int unsigned auto_increment, name varchar(20), primary key (id));create table student( id int unsigned auto_increment, name varchar(20), gender enum('男','女','保密'), tid int原创 2021-05-26 16:26:53 · 11992 阅读 · 0 评论