如上 表中 usertime字段记录用户登录的时间
那我想查出表中SQL code:
+----------+---------------------+------+
| username | usertime | type |
+----------+---------------------+------+
| | 2009-10-15 09:48:12 | 0 |
| 456 | 2009-10-14 20:30:07 | 1 |
| 789 ......
#include "stdafx.h"
#include "winsock2.h"
#include <windows.h>
#include <iostream>
#include <mysql.h>
#include <stdio.h>
#include <conio.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
&nbs ......
之前卸载了mysql,重新安装了下,然后之前版本的mysql下的data目录中数据库文件格式为:.MYD 、.MYI之类的东西
到百度搜了下,说把这些拷贝到新的mysql安装目录下的data目录中即可识别,但是好像还是识别不了啊?应该怎么还原这些格式的数据库呢?
但是好像还是识别不了啊:
提示什么错误信息
好像也没啥错误提示 ......
/usr/sbin/groupadd mysql
/usr/sbin/useradd -g mysql mysql
tar zxvf mysql-5.1.34.tar.gz
cd mysql-5.1.34/
./configure --prefix=/usr/local/webserver/mysql/ --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-em ......
SQL code:
SET NAMES 'gb2312'
drop table if exists t_course;
create table t_course(
id int(11) not null auto_increment,
name varchar(50) default null,
primary key(id)
)ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED;
#set names 'gbk';
insert into t_course values ......
String user_name = request.getParameter("user_name");
private Date user_register_time;//这个是想获得当前的时间
我想用SQL语句插入MYSQL数据库中users表中 属性是:(user_name varchar(30),user_register_ ......