posts - 325,  comments - 25,  trackbacks - 0
            2012年4月19日
               摘要:   閱讀全文
          posted @ 2020-04-02 09:40 長春語林科技 閱讀(155) | 評論 (0)編輯 收藏
          https://blog.csdn.net/qq_31122833/article/details/83992085
          posted @ 2020-03-05 13:34 長春語林科技 閱讀(334) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2020-02-15 10:14 長春語林科技 閱讀(144) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2020-02-06 11:08 長春語林科技 閱讀(162) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-10-08 16:15 長春語林科技 閱讀(125) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-10-08 11:35 長春語林科技 閱讀(155) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-09-25 11:06 長春語林科技 閱讀(451) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-07-12 13:41 長春語林科技 閱讀(120) | 評論 (0)編輯 收藏
          將博客搬至CSDN
          posted @ 2019-04-14 14:57 長春語林科技 閱讀(116) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-01-10 17:19 長春語林科技 閱讀(129) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-12-19 10:23 長春語林科技 閱讀(163) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-12-10 12:54 長春語林科技 閱讀(171) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-08-16 16:33 長春語林科技 閱讀(199) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-06-08 10:12 長春語林科技 閱讀(217) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-06-08 10:00 長春語林科技 閱讀(255) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-06-08 09:03 長春語林科技 閱讀(168) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-29 14:00 長春語林科技 閱讀(337) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-29 11:28 長春語林科技 閱讀(432) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-29 11:01 長春語林科技 閱讀(132) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-27 22:28 長春語林科技 閱讀(307) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-25 17:28 長春語林科技 閱讀(138) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-16 12:37 長春語林科技 閱讀(182) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-16 10:34 長春語林科技 閱讀(239) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-12 20:19 長春語林科技 閱讀(142) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-10 15:23 長春語林科技 閱讀(204) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-23 20:16 長春語林科技 閱讀(128) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:44 長春語林科技 閱讀(212) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:42 長春語林科技 閱讀(151) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:40 長春語林科技 閱讀(514) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:38 長春語林科技 閱讀(122) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:36 長春語林科技 閱讀(134) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:35 長春語林科技 閱讀(129) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:33 長春語林科技 閱讀(327) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:32 長春語林科技 閱讀(140) | 評論 (0)編輯 收藏
          es
               摘要:   閱讀全文
          posted @ 2017-12-27 16:22 長春語林科技 閱讀(137) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-10-19 10:42 長春語林科技 閱讀(133) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-07-19 20:28 長春語林科技 閱讀(180) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-06-15 10:21 長春語林科技 閱讀(193) | 評論 (0)編輯 收藏


          一.MYSQL的命令行模式的設(shè)置:
          桌面->我的電腦->屬性->環(huán)境變量->新建->PATH=";path/mysql/bin;"  其中path為MYSQL的安裝路徑。
          二.命令行進入MYSQL的方法:
          1.C:\>mysql -h hostname -u username -p
          按ENTER鍵,等待然后輸入密碼,這里hostname為服務(wù)器的名稱,如localhost,username為MYSQL的用戶名,如root.進入命令行就可以直接操作MYSQL了。
          三.從數(shù)據(jù)庫導(dǎo)出數(shù)據(jù)庫文件:
          1.將數(shù)據(jù)庫mydb導(dǎo)出到e:\mysql\mydb.sql文件中:
          打開開始->運行->輸入cmd進入命令行模式
          c:\>mysqldump -h localhost -u root -p mydb >e:\mysql\mydb.sql
          然后輸入密碼,等待一會導(dǎo)出就成功了,可以到目標文件中檢查是否成功。
          2.將數(shù)據(jù)庫mydb中的mytable導(dǎo)出到e:\mysql\mytable.sql文件中:
          c:\>mysqldump -h localhost -u root -p mydb mytable >e:\mysql\mytable.sql
          3.將數(shù)據(jù)庫mydb的結(jié)構(gòu)導(dǎo)出到e:\mysql\mydb_stru.sql文件中:
          c:\>mysqldump -h localhost -u root -p mydb --add-drop-table >e:\mysql\mydb_stru.sql
          //-h localhost可以省略,其一般在虛擬主機上用
          四.從外部文件導(dǎo)入數(shù)據(jù)到數(shù)據(jù)庫:
          從e:\mysql\mydb2.sql中將文件中的SQL語句導(dǎo)入數(shù)據(jù)庫中:
          c:\>mysql -h localhost -u root -p mydb2 <e:\mysql\mydb2.sql
          然后輸入密碼,就OK了
          五.關(guān)于導(dǎo)入文件大小限制問題的解決:
          默認情況下:mysql對導(dǎo)入的文件大小有限制的,最大為2M,所以當文件很大時,直接無法導(dǎo)入,解決列舉如下:
          1.在php.ini中修改相關(guān)參數(shù):
          影響Mysql導(dǎo)入文件大小的參數(shù)有三個:
          memory_limit=128M, upload_max_filesize=2M, post_max_size=8M
          修改upload_max_filesize=200M這里修改滿足你需要的大小,可以同時修改其他兩項memory_limit=250M ,post_max_size=200M.這樣就可以導(dǎo)入200M以下的.sql文件了。

          上文是把mysql放置在系統(tǒng)路徑下,其實不放也可以。如我的mysql安裝目錄為D:\MySQL Server 5.0;
          則首先打開dos窗口,然后輸入D:(沒有'\')回車
          此時應(yīng)該會出現(xiàn)D:\>這樣的標志,然后在其后輸入D:\MySQL Server 5.0\bin回車
          出現(xiàn)D:\MySQL Server 5.0\bin>接著輸入mysqldump -u root -p 數(shù)據(jù)庫名 >數(shù)據(jù)庫名.sql(也可以輸入路徑); (具體參照上面)
          導(dǎo)入文件同樣,只是改了'>'為'<'就可以了,或者直接用source也許:
          常用source命令
          進入mysql數(shù)據(jù)庫控制臺  : 如 mysql -u root -p
          mysql>use 數(shù)據(jù)庫
          然后使用source命令,后面參數(shù)為腳本文件(這里用到的是.sql)
          mysql>source d:\mydb.sql

          posted @ 2017-05-24 17:17 長春語林科技 閱讀(192) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-03-14 17:02 長春語林科技 閱讀(135) | 評論 (0)編輯 收藏
               摘要: 環(huán)境:阿里云ECS、centos 7一、防火墻配置不知道為什么,云主機沒有開啟firewall 或iptables,記錄一下配置iptables防火墻的步驟1、檢測并關(guān)閉firewall12345systemctl status firewalld.service #檢測是否開啟了firewall systemctl stop firewalld.service #關(guān)閉firewall&...  閱讀全文
          posted @ 2017-03-02 11:23 長春語林科技 閱讀(173) | 評論 (0)編輯 收藏
          cat /etc/redhat-release
          posted @ 2017-03-02 10:48 長春語林科技 閱讀(119) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-02-25 16:24 長春語林科技 閱讀(151) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-02-06 15:44 長春語林科技 閱讀(130) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-01-09 13:32 長春語林科技 閱讀(144) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-12-07 13:22 長春語林科技 閱讀(89) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-11-11 21:35 長春語林科技 閱讀(203) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-09-27 16:55 長春語林科技 閱讀(413) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-04-25 16:29 長春語林科技 閱讀(234) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-04-07 11:22 長春語林科技 閱讀(255) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-04-07 11:12 長春語林科技 閱讀(276) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-03-29 15:18 長春語林科技 閱讀(167) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-03-10 15:38 長春語林科技 閱讀(149) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-20 13:04 長春語林科技 閱讀(228) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-12 09:41 長春語林科技 閱讀(819) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-12 09:30 長春語林科技 閱讀(270) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-07 14:38 長春語林科技 閱讀(191) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-07 13:03 長春語林科技 閱讀(202) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-03-24 11:06 長春語林科技 閱讀(165) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2014-08-06 14:54 長春語林科技 閱讀(333) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-11-27 17:54 長春語林科技 閱讀(15469) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-05-10 12:30 長春語林科技 閱讀(2951) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-05-03 15:32 長春語林科技 閱讀(241) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-28 16:31 長春語林科技 閱讀(441) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-28 15:19 長春語林科技 閱讀(895) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-28 12:42 長春語林科技 閱讀(4114) | 評論 (1)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-19 22:16 長春語林科技 閱讀(1087) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-19 10:26 長春語林科技 閱讀(749) | 評論 (0)編輯 收藏
          <2012年4月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

           

          長春語林科技歡迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 高台县| 陈巴尔虎旗| 屏山县| 茶陵县| 台北市| 溆浦县| 兖州市| 元氏县| 宁安市| 神农架林区| 会昌县| 鱼台县| 桃江县| 定结县| 苗栗县| 门源| 武山县| 慈溪市| 军事| 永昌县| 长寿区| 福建省| 山阴县| 鄂伦春自治旗| 栾川县| 香河县| 于田县| 菏泽市| 平谷区| 通许县| 林甸县| 铜梁县| 阜新市| 广东省| 崇文区| 庄河市| 盘锦市| 远安县| 遂溪县| 布拖县| 中宁县|