国产探花免费观看_亚洲丰满少妇自慰呻吟_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>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 石楼县| 鹤山市| 红安县| 阜宁县| 嘉兴市| 克东县| 吴旗县| 崇左市| 微博| 咸丰县| 武清区| 朝阳市| 龙口市| 建德市| 太仆寺旗| 句容市| 谢通门县| 巴塘县| 资中县| 扬中市| 固原市| 阳谷县| 兴安盟| 六枝特区| 如皋市| 绵阳市| 雷州市| 漳州市| 蕉岭县| 恩施市| 洮南市| 革吉县| 赤水市| 安陆市| 固镇县| 资兴市| 博野县| 托克逊县| 拜城县| 扎鲁特旗| 康保县|