mysql_old_wrong

本文介绍了一种在数据库中自动为用户增加积分的方法,通过创建触发器,在每次插入新帖子时,自动为发帖人增加10点积分,简化了积分管理流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

DELIMITER $
create trigger auto_post_person_point
after insert on post for each row
begin
update person set point = point+10 where person_id = new.person_id;
end$

DELIMITER $... ...$ 这个不写会报错:missing semicolon, 意思是缺少分号...

转载于:https://www.cnblogs.com/chinashenkai/p/9451388.html

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash. 2025-03-09 13:57:47+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.2.0-1.el9 started. 2025-03-09 13:57:48+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2025-03-09 13:57:48+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.2.0-1.el9 started. '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock' 2025-03-09T05:57:48.531353Z 0 [System] [MY-015015] [Server] MySQL Server - start. 2025-03-09T05:57:48.796751Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 9.2.0) starting as process 1 2025-03-09T05:57:48.830566Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2025-03-09T05:57:50.751653Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2025-03-09T05:57:51.358634Z 1 [ERROR] [MY-010520] [Server] Invalid (old?) table or database name 'hm-item' 2025-03-09T05:57:51Z UTC - mysqld got signal 11 ; Signal SIGSEGV (Address not mapped to object) at address 0x0 Most likely, you have hit a bug, but this error can also be caused by malfunctioning hardware. BuildID[sha1]=6e45d3c3fff42426a19918d101b1be25b8ec7297 Thread pointer: 0x7b6d2b0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 7f73c1411b10 thread_stack 0x100000 #0 0xc84d30 <unknown> #1 0x7f73ce20f72f <unknown> #2 0x1950243 <unknown> #3 0x19a4793 <unknown> #4 0x16fd7bb <unknown> #5 0x153a34a <unknown> #6 0x154e9ca <unknown> #7 0xd2cc07 <unknown> #8 0x1cf6501 <unknown> #9 0x7f73ce25ad31 <unknown> #10 0x7f73ce2df0b3 <unknown> #11 0xffffffffffffffff <unknown> Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0): Connection ID (thread ID): 1 Status: NOT_KILLED The manual page at http://dev.mysql.com/doc/mysql/en/cras
03-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值