易截截图软件、单文件、免安装、纯绿色、仅160KB

MySQL命令

1.连接MySQL数据库
echo on  
cd c:\Program Files\MySQL\MySQL Server 5.2\bin
mysql -uroot -ppass
2、显示数据库列表。
show databases;
3、显示库中的数据表:
use mysql; //打开库,
show tables;
4、显示数据表的结构:
describe 表名;
5、建库:
create database 库名;
6、建表:
use 库名;
create table 表名 (字段设定列表);
7、删库和删表:
drop database 库名;
drop table 表名;
8、将表中记录清空:
delete from 表名;
9、显示表中的记录:
select * from 表名;


相关文档:

Tomcat+MySQl JDBC连接池的配置

1、安装Tomcat
JDBC连接池配置的第一步是下载和安装Tomcat。参考Tomcat for window 的安装向导,基本直接安装即可,注意:安装时会提示输入管理用户名和密码,这是以后会用到的用户名和密码,切记。
2、安装MySql
默认安装即可。
3、使用Tomcat的Web管理应用配置数据源
启动Tomcat服务器,打开浏览器,输入http://loca ......

如何提高Mysql语句插入性能

在表中已有大量的index的情况下插入大量数据,可以采用先将索引删除,然后再插入数据,然后再重新建立索引。之所以这样会快是因为???
7.2.14 Speed of INSERT Statements
The time to insert a record is determined by the following factors, where the numbers indicate approximate proportions:
  & ......

解决MySQL不允许从远程访问的方法

解决MySQL不允许从远程访问的方法
2009-06-04 13:11
1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
Sql代码 复制代码
   1. mysql -u root -pvmwaremysql>us ......

A simple mysql sample

#include <winsock2.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <mysql.h>
#pragma comment(lib,"libmysql")
int _tmain(int argc, _TCHAR* argv[])
{
MYSQL* mysql;
MYSQL_RES* results;
MYSQL_ROW record;
mysql = mysql_init(NULL);
if(! ......

Mysql的varchar类型

自从认识mysql的那天起就知道varchar的长度限制为255,不过现在这种情况已经改变了:
Values in VARCHAR columns are variable-length strings. The length can be specified as a value from 0 to 65,535. The effective maximum length of a VARCHAR is subject to the maximum row size (65,535 by ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号