国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

MySQL 5.1的中文支持的一個改進

2024-07-24 12:56:00
字體:
來源:轉載
供稿:網友

  mysql 5.1的中文支持的一個改進,從mysql 4.1開始不支持中文路徑,文件名的問題解決了。

  見下面示例

  microsoft windows xp [版本 5.1.2600]

  (c) 版權所有 1985-2001 microsoft corp.

  c:/documents and settings/administrator>runas /user:aaa cmd

  輸入 aaa 的密碼:

  試圖將 cmd 作為用戶 "my-tomato/aaa" 啟動...

  c:/documents and settings/administrator>cd /mysql51/bin

  c:/mysql51/bin>mysql -u root
welcome to the mysql monitor. commands end with ; or /g.
your mysql connection id is 1 to server version: 5.1.7-beta-community

  type 'help;' or '/h' for help. type '/c' to clear the buffer.

  mysql> use test
database changed
mysql> show tables;
+----------------+
| tables_in_test |
+----------------+
| tr       |
| trb3      |
+----------------+
2 rows in set (0.00 sec)

  mysql> desc tr;
+-----------+-------------+------+-----+---------+-------+
| field   | type    | null | key | default | extra |
+-----------+-------------+------+-----+---------+-------+
| id    | int(11)   | yes |   | null  |    |
| name   | varchar(50) | yes |   | null  |    |
| purchased | date    | yes |   | null  |    |
+-----------+-------------+------+-----+---------+-------+
3 rows in set (0.00 sec)

  mysql> insert into tr (id,name) values(1,'ewr'),(2,'sr'),(3,'gh');
query ok, 3 rows affected (0.00 sec)
records: 3 duplicates: 0 warnings: 0

  mysql> select * from tr into outfile 'c:/mysql51/豬八戒.txt';
query ok, 11 rows affected (0.00 sec)

  mysql> select * from tr into outfile 'c:/mysql51/新建文件夾/豬八戒.txt';
query ok, 11 rows affected (0.02 sec)

  mysql> create table tr2 as select * from tr limit 0;
query ok, 0 rows affected (0.06 sec)
records: 0 duplicates: 0 warnings: 0

  mysql> select * from tr2;
empty set (0.00 sec)

  mysql> load data infile 'c:/mysql51/新建文件夾/豬八戒.txt' into table tr2;
query ok, 11 rows affected (0.00 sec)
records: 11 deleted: 0 skipped: 0 warnings: 0

  mysql>
c:/mysql51/bin>mysqladmin -u root shutdown

  c:/mysql51/bin>cd /mysql50/bin

  c:/mysql50/bin>mysql -u root
welcome to the mysql monitor. commands end with ; or /g.
your mysql connection id is 1 to server version: 5.0.18

  type 'help;' or '/h' for help. type '/c' to clear the buffer.

  mysql> use test
database changed
mysql> create table tr (id int, name varchar(50), purchased date)
   -> ;
query ok, 0 rows affected (0.05 sec)

  mysql> load data infile 'c:/mysql51/新建文件夾/豬八戒.txt' into table tr;
error 29 (hy000): file 'c:/mysql51/脨脗陸簍脦脛錄鎂錄脨/脰鉚擄脣陸盲.txt' not fo
und (errcode: 2)
mysql>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 云霄县| 白朗县| 安阳县| 巴中市| 遵化市| 化隆| 定安县| 无为县| 漳平市| 保靖县| 宁强县| 翁牛特旗| 东海县| 平远县| 西畴县| 同江市| 镇江市| 安新县| 内乡县| 温州市| 新营市| 吉首市| 新余市| 新平| 航空| 五莲县| 沿河| 怀宁县| 苍山县| 台山市| 曲靖市| 涟水县| 遂宁市| 犍为县| 凤台县| 乌拉特前旗| 周宁县| 同仁县| 南通市| 华亭县| 大厂|