LMLPHP后院

LmlException: HY000 1114 The table is full技术

maybe yes 发表于 2020-10-10 11:32

如何让一个报错经历证明你使用数据库的经验丰富度,那么这个将是最好的回复,请看下文:

LmlException: HY000
Code: 1114
The table '  ' is full

这个是 MySQL 的内存表报错,内存占用过大,具体什么原因不是很清楚,可能是系统本身的内存不足导致,MySQL 没有必要去单纯的限制内存表的使用,整个系统的内存不都是为数据库服务的吗?innodb 是全部加载进入内存的。

参考解决方案

修改 MySQL 的配置文件 my.ini,在[mysqld] 下添加/修改两行,修改完后重启 MySQL

tmp_table_size = 256M
max_heap_table_size = 256M 系统默认是16M

MacOS 上执行 sed 命令的坑技术

maybe yes 发表于 2020-09-16 16:44

sed 命令和 awk 一样,非常强大,但强大的命令就会有局限性,学习也难,殊不知很多人宁愿写个熟悉的 Python 脚本也比这个快,正是如此,使用频次相对较低,这不在 MacOS 上一使用就发现了坑,报了很多奇奇怪怪的错误,要是没有网络,怎么能找得到问题所在呢?所以,还是网络好。要交流,多上网。

sed: 1: : extra characters at the end of l command
 
sed: 1: : extra characters at the end of l command

sed: 1: No such file or directory
 
sed: 1: No such file or directory

sed: 1: invalid command code .

MySQL8 关闭 binlog技术

maybe yes 发表于 2020-09-03 11:18

MySQL8 除了默认密码不好用之外,还默认打开了 binlog,简直完全不符合正常人思维,算是越来越不好用了。

root@localhost:/var/lib# du -sh ./*
32K	./apache2
113M	./apt
8.0K	./aspell
4.0K	./dbus
4.0K	./dhcp
24K	./dictionaries-common
19M	./dpkg
24K	./emacsen-common
4.0K	./git
12K	./grub
8.0K	./initramfs-tools
3.2M	./ispell
8.0K	./logrotate
4.0K	./man-db
91M	./mecab
4.0K	./misc
9.7G	./mysql
4.0K	./mysql-files
4.0K	./mysql-keyring
1.5M	./nginx
4.0K	./os-prober
28K	./pam
44K	./php
16K	./polkit-1
4.0K	./private
4.0K	./python
8.0K	./sudo
288K	./systemd
240K	./ucf
8.0K	./vim


root@localhost:/var/lib/mysql# du -sh ./*
4.0K	./auto.cnf
4.0K	./binlog.000001
4.0K	./binlog.000002
1.1G	./binlog.000003
1.1G	./binlog.000004
157M	./binlog.000005
1.1G	./binlog.000006
1.1G	./binlog.000007
1.1G	./binlog.000008
1.1G	./binlog.000009
679M	./binlog.000010
4.0K	./binlog.index
4.0K	./ca-key.pem
4.0K	./ca.pem
4.0K	./client-cert.pem
4.0K	./client-key.pem
2.7G	./lmlphp
192K	./#ib_16384_0.dblwr
8.2M	./#ib_16384_1.dblwr
20K	./ib_buffer_pool
12M	./ibdata1
48M	./ib_logfile0
48M	./ib_logfile1
12M	./ibtmp1
164K	./#innodb_temp
36K	./mysql
25M	./mysql.ibd
1.5M	./performance_schema
4.0K	./private_key.pem
4.0K	./public_key.pem
4.0K	./server-cert.pem
4.0K	./server-key.pem
84K	./sys
12M	./undo_001
12M	./undo_002

Debian 10 安装 MySQL Server技术

maybe yes 发表于 2020-08-28 17:21

本着一颗折腾的心,折腾快乐。不过这次选择 Debian10,整体还是蛮顺利的,之前在 debian9 上安装 MySQL,默认 MySQL 连密码都没有,总之很难用,安装也不够便捷,Debian10 安装 MySQL8 的安装过程方便多了,mysql_secure_installation 都不需要执行了,安装过程交互界面直接把密码设置好了,由于我使用了更加安全的 caching_sha2_password 导致了数据库在应用程序中无法连接,后面又改成了 mysql native password。

正常安装出现报错:

root@localhost:~# apt install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mysql-server' has no installation candidate

PHP 确实不太适合处理稍微深入的细活技术

maybe yes 发表于 2020-08-26 16:25

PHP 是一门优秀的 WEB 开发语言,没有之一,有人也许会质问我?,你去看看市面上那些 Python,Go 之类语言的教程网站就知道了,他们是用 PHP 做的;但是 PHP 语言本身包含的一些代码库质量比较差,过了这么多年,依然没有人能撬动它。

如下报错,我表示无解:

LMLPHP Fatal Error:imagecreatefromstring(): gd-png: fatal libpng error: bad adaptive filter value

LMLPHP Fatal Error:imagecreatefromstring(): gd-png: fatal libpng error: IDAT: CRC error
2024-04-25 15:05:39 1714028739 0.016747