|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
怀疑这些功能在MySQL5.0中的成熟性。充其量它们在MySQL中被支持的时间也就一年左右,而在MySQL学习教程其他关系型数据库中则已经存在了近10年的时间。 MySQL5.1的中文撑持的一个改善,从MySQL4.1入手下手不撑持中文路径,文件名的成绩办理了。
见上面示例
MicrosoftWindowsXP[版本5.1.2600]
(C)版权一切1985-2001MicrosoftCorp.
C:DocumentsandSettingsAdministrator>runas/user:aaacmd
输出aaa的暗码:
试图将cmd作为用户"MY-TOMATOaaa"启动...
C:DocumentsandSettingsAdministrator>cdmysql51in
C:mysql51in>mysql-uroot
WelcometotheMySQLmonitor. Commandsendwith;org.
YourMySQLconnectionidis1toserverversion:5.1.7-beta-community
Typehelp;orhforhelp.Typectoclearthebuffer.
mysql>usetest
Databasechanged
mysql>showtables;
+----------------+
|Tables_in_test|
+----------------+
|tr |
|trb3 |
+----------------+
2rowsinset(0.00sec)
mysql>desctr;
+-----------+-------------+------+-----+---------+-------+
|Field |Type |Null|Key|Default|Extra|
+-----------+-------------+------+-----+---------+-------+
|id |int(11) |YES | |NULL | |
|name |varchar(50)|YES | |NULL | |
|purchased|date |YES | |NULL | |
+-----------+-------------+------+-----+---------+-------+
3rowsinset(0.00sec)
mysql>insertintotr(id,name)values(1,EWR),(2,SR),(3,GH);
QueryOK,3rowsaffected(0.00sec)
Records:3 Duplicates:0 Warnings:0
mysql>select*fromtrintooutfilec:/mysql51/猪八戒.txt;
QueryOK,11rowsaffected(0.00sec)
mysql>select*fromtrintooutfilec:/mysql51/新建文件夹/猪八戒.txt;
QueryOK,11rowsaffected(0.02sec)
mysql>createtabletr2asselect*fromtrlimit0;
QueryOK,0rowsaffected(0.06sec)
Records:0 Duplicates:0 Warnings:0
mysql>select*fromtr2;
Emptyset(0.00sec)
mysql>loaddatainfile c:/mysql51/新建文件夹/猪八戒.txtintotabletr2;
QueryOK,11rowsaffected(0.00sec)
Records:11 Deleted:0 Skipped:0 Warnings:0
mysql>
C:mysql51in>mysqladmin-urootshutdown
C:mysql51in>cdmysql50in
C:mysql50in>mysql-uroot
WelcometotheMySQLmonitor. Commandsendwith;org.
YourMySQLconnectionidis1toserverversion:5.0.18
Typehelp;orhforhelp.Typectoclearthebuffer.
mysql>usetest
Databasechanged
mysql>CREATETABLEtr(idINT,nameVARCHAR(50),purchasedDATE)
->;
QueryOK,0rowsaffected(0.05sec)
<p> mysql>loaddatainfile c:/mysql51/新建文件夹/猪八戒.txtintotabletr;
ERROR29(HY000):Filec:mysql51陆篓录镁录铆掳陆盲.txtnotfo
und(Errcode:2)
mysql> |
|