摘要: 查看MySQL数据库大小 1.首先进入information_schema 数据库(存放了其他的数据库的信息) ? 1 2 mysql> use information_schema; Database changed ? 1 2 mysql> use information_schema; Dat 阅读全文
posted @ 2018-02-09 15:03 鸡毛巾 阅读(2919) 评论(0) 推荐(0) 编辑
摘要: 一、MySQL 获得当前日期时间 函数 1.1 获得当前日期 + 时间(date + time) 函数:now() mysql> select now();+———————+| now() |+———————+| 2008-08-08 22:20:46 |+———————+ 除了 now() 函数能 阅读全文
posted @ 2018-02-09 14:39 鸡毛巾 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 今天在树莓派之中安装mysql,结果被我安装了mariadb,这样做很讨厌,但是也可以将就用。记录一下折腾的过程。 安装就还是使用sudo apt install mysql 1.安装之后需要使用工具进行一些简单的配置 下面是配置的一个记录,抄别人的 2.修改 /etc/mysql/mariadb. 阅读全文
posted @ 2018-02-09 14:30 鸡毛巾 阅读(456) 评论(0) 推荐(0) 编辑