随笔分类 -  MySql

MySql database basic knowledge
摘要:VS.NET如何和MySQL連結 The MySQL .NET Native Provider is an add-on component to the .NET Framework that allows you to access the MySQL database through the native protocol, without going through OLE DB. ht... 阅读全文
posted @ 2008-12-18 14:22 shuang 阅读(157) 评论(0) 推荐(0)
摘要:当工作在非常大的表上时,你可能偶尔需要运行很多查询获得一个大量数据的小的子集,不是对整个表运行这些查询,而是让MySQL每次找出所需的少数记录,将记录选择到一个临时表可能更快些,然后对这个临时表运行查询。 创建临时表很容易,给正常的CREATE TABLE语句加上TEMPORARY关键字: CREATE TEMPORARY TABLE tmp_table ( name VARCHAR(10) NO... 阅读全文
posted @ 2008-12-05 00:26 shuang 阅读(338) 评论(0) 推荐(0)
摘要:不使用用户名/密码不可能在命令行下执行MySql的工具向数据库中导入数据,就像没有钥匙怎么打开房门。 +++++++++++++++++++++++++ C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqlimport Meet_A_Geek customers.txt mysqlimport: Error: 1045 Access denied fo... 阅读全文
posted @ 2008-12-04 21:48 shuang 阅读(1699) 评论(0) 推荐(0)
摘要:mysql> create database tt; Query OK, 1 row affected (0.11 sec) mysql> show databases -> -> ; +--------------------+ | Database | +--------------------+ | information_schema | | mysql... 阅读全文
posted @ 2008-12-04 21:18 shuang
摘要:MySql 命令行中注意中文分号;这个是不能被接收的,不等于英文的; 如下 ++++++++++++++++++++ mysql> select database(); -> ; -> -> ; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that correspond... 阅读全文
posted @ 2008-12-04 21:15 shuang
摘要:C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqldump -uroot -pp@ssw0rd school>d:/school.bbb 最后文件的命名我觉得最好用.sql,就是school.sql 用记事本(或写字板)打开发现是文本文档,有点像Sql Server 的script脚本,内容如下: +++++++++++++++++++++++++... 阅读全文
posted @ 2008-12-04 20:56 shuang