mysql
文章平均质量分 81
yy252756120
这个作者很懒,什么都没留下…
展开
-
mysql 1064 USING BTREE 问题
从服务器上通过mysqldump命令导出文件 在导入到另外的库时,提示: MySQL 返回: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'U...2011-09-01 11:34:58 · 421 阅读 · 0 评论 -
查看linux下mysql的版本号
1:在终端下:mysql -V。 以下是代码片段: [shengting@login ~]$ mysql -V mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686) 2:在mysql中:mysql> status; 以下是代码片段: mysql> status; -------------- mys...原创 2011-08-11 10:33:47 · 188 阅读 · 0 评论 -
linux下安装mysql详解
(转)安装 mysql5.0 chmod 755 mysql-standard-5.0.15-linux-gnu-i686-glibc23.tar.gz tar xfz mysql-standard-5.0.15-linux-gnu-i686-glibc23.tar.gz //将解压后生成的目录, mv mysql-standard-5.0.15-linux-gn...原创 2011-08-11 11:29:30 · 107 阅读 · 0 评论 -
linux下mysql的卸载、安装全过程
卸载mysql 1、查找以前是否装有mysql 命令:rpm -qa|grep -i mysql 可以看到mysql的两个包: mysql-4.1.12-3.RHEL4.1 mysqlclient10-3.23.58-4.RHEL4.1 2、删除mysql 删除命令:rpm -e --nodeps 包名 ( rpm -ev mysql-4.1.12-...2011-08-12 08:38:16 · 103 阅读 · 0 评论 -
Write operations are not allowed in read-only mode (FlushMode.NEVER)
使用Spring提供的Open Session In View而引起Write operations are not allowed in read-only mode (FlushMode.NEVER) 错误解决: 在没有使用Spring提供的Open Session In View情况下,因需要在service(or Dao)层里把session关闭,所以lazy loading 为true...2011-11-23 18:02:41 · 105 阅读 · 0 评论 -
关于linux下mysql数据库的自动定时备份教程
最近为了搞linux下mysql的自动定时备份,特意写了个教程,方便以后查阅,并跟大家分享,如有问题,欢迎吐槽。 前提设定为凌晨零点零分,这样保存起来的数据都是昨天的。 废话少说。开始 1.首先我建立了 /home/user/mysql_autobackup.sh 注:mysql_autobackup.sh 内容如下: /usr/bin/mysqldum...2012-08-14 14:21:58 · 98 阅读 · 0 评论 -
centos用yum安装mysql-server 详细步骤
1.安装:#yum -y install mysql-server 2.修改配置:#vi /etc/my.cnf 暂时修改一下编码(添加在密码下方添加): default-character-set = utf8 3.启动mysql服务,并设定为系统服务: # chkconfig mysqld on ← 设置MySQL服务随系统启动自启动# chkconfig –list mysql...原创 2014-01-10 15:14:18 · 165 阅读 · 0 评论 -
CentOS 6.5 安装与配置LAMP
文章转自 http://fxm5547.blog.163.com/blog/static/122479154201412521342907/ 如若侵权,请与我留言。谢谢! 准备工作: 1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j...原创 2014-06-28 17:21:36 · 169 阅读 · 0 评论 -
MySql 性能检查和优化方法
我一直是使用mysql这个数据库软件,它工作比较稳定,效率也很高。在遇到严重性能问题时,一般都有这么几种可能:1、索引没有建好;2、sql写法过于复杂;3、配置错误;4、机器实在负荷不了;1、索引没有建好如果看到mysql消耗的cpu很大,可以用mysql的client工具来检查。在linux下执行/usr/local/mysql/bin/mysql -hlocalhost -uroot -p 输...原创 2013-09-22 09:22:00 · 91 阅读 · 0 评论