请教一下, 我在shell中做mysql 的select query, 为什么会回报错误?
贴上我shell请大家指教!!
#!/bin/ksh
user_name="test"
passwd="123456"
host="localhost"
db_use="test"
mysql="$(which mysql)"
$mysql -u $user_name -p$passwd $db_use <
by
CuteJunJun
-
Shell
-
2008-11-18 15:04:35 阅读(1890) 回复(5)
我是mysql的新手,打开论坛是这样的提示:Discuz! info: mysql query Error Time: 2008-5-22 7:43am Script: /index.php SQL: SELECT username FROM pfans_members ORDER BY regdate DESC LIMIT 1 Error: Table 'pfans_members' is marked as crashed and should be repaired Errno.: 1194 Similar error report has beed dispatched to administrator before 请问可以修复吗,谢谢大家指教.
作者: bailian 出自: http://www.linuxdiyf.com 如果 mysql Server 负载比较高,处理非常繁忙的话,可以启动query Cache 以加速响应时间,启动方法可以在my.cnf(Linux)或my.ini(Windows)中加入不以下项目: (Redhat下面是:/etc/my.cnf;Debian和Ubuntu是在/etc/mysql/my.cnf) query_cache_size = 268435456 query_cache_type = 1 query_cache_limit = 1048576 以上语句的设置中 query_cache_size 是分配256M内存给query Cache;que...
mysql query Browser 下载地址: http://dev.mysql.com/get/Downloads/mysqlGUITools/mysql-gui-tools-5.0-r11a-win32.msi/from/pick 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/34643/showart_294291.html
执行mysql_query时出现了"login lost connection to mysql server during query"的错误 不知道是怎么回事? 而我命令行程序又能够正常查询
版本:Server version: 5.0.67-log Source distribution 我在/etc/my.cnf的[mysqld]里面指定了 log_slow_queries = /opt/yjsword/mysql/log/mysql_slow_query.txt long_query_time = 1 每次启动mysql日志里都会出现: /opt/yjsword/mysql/libexec/mysqld: File '/var/log/mysql_slow_query.log' not found (Errcode: 13) 090326 11:20:55 [ERROR] Could not use /var/log/mysql_slow_query.log for logging (error 13). Turning lo...
1、http://www.84228.cn/html/diannaojishu/qitajishu/wangluobiancheng/PHP/20081025/6467.html 介绍方法不错,就是在连接数据库后,加上一句: mysql_query("set names 'utf8'");但是如果原来有数据,那么就出现大面积的乱码。 2、 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38866/showart_1854019.html
mysql query browser连接不了数据库: 错误提示如下: Could not connect to specified instance. mysql Error Number 1045 Access denied for user 'root'@'%"(Using password :YES)
php-syslog-ng编译成功,可是进入ie,提示 USING TABLE: logs query failed: 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 '' at line 1 我用的是mysql5.0.27 httpd-2.2.3 php-5.1.6 phpsyslogng-2.8 libol-0.3.14 syslog-ng-1.6.5 什么都成功了,就是进入ie,输入口令后提示登陆成功,点击Success! Click here!后提示上述错误,...
描述: CR_SERVER_LOST 当写服务器时,客户没有出错,但是它没有得到对问题的一个完整的答案(或任何答案)。 三个层面上解决这个问题: 1. 代码层面,你需要在自己的PHP数据库连接处增加大致如下代码。 if( in_array(mysql_errno(), array(2006, 2013) ) { mysql_close(); mysql_connect(...); mysql_query(...); } 也就是说遇到2006,2013错误就重新连接一下mysql。 2. mysql层面,需要配置一些...