- 博客(5)
- 收藏
- 关注
转载 shell调用mysql
shell 下执行mysql 命令原文链接在shell开发中,很多时候我们需要操作mysql数据库(比如:查询数据、导出数据等),但是我们又无法进入mysql命令行的环境,就需要在shell环境中模拟mysql的环境,使用mysql相关命令,本文总结几种shell操作mysql的方法,供大家参考。方案1 mysql -uuser -ppasswd -e"inser
2014-05-10 18:31:28 424
原创 mysql innodb的row size限制
数据库引擎为innodb,innodb_file_format为Antelope,这种情况下,数据库表中的一条记录的最大大小为8126,如果记录大小超过8126,那么更新该记录的时候会出现类似以下错误:Got error 139 from storage engine 或是 Row size too large (> 8126).Changing some columns
2014-05-10 17:59:09 879
原创 mysql启动问题
最近遇到mysql 启动问题[root@localhost mysql]# /etc/init.d/mysqld startStarting MySQL.........The server quit without updating PID file (/app/mysql/localhost.localdomain.pid).[FAILED]可以在mysql errorl
2014-05-10 17:50:36 294
原创 mysql 字符集 utf8
通常在使用mysql的时候,会设置mysql的字符集为utf8;检验方式为:select @@character_set_client, @@character_set_connection, @@character_set_database, @@character_set_results,@@character_set_server, @@character_set_system;
2014-05-10 17:36:16 324
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人