posts - 325,  comments - 25,  trackbacks - 0
            2012年4月19日
               摘要:   閱讀全文
          posted @ 2020-04-02 09:40 長春語林科技 閱讀(152) | 評論 (0)編輯 收藏
          https://blog.csdn.net/qq_31122833/article/details/83992085
          posted @ 2020-03-05 13:34 長春語林科技 閱讀(329) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2020-02-15 10:14 長春語林科技 閱讀(140) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2020-02-06 11:08 長春語林科技 閱讀(158) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-10-08 16:15 長春語林科技 閱讀(123) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-10-08 11:35 長春語林科技 閱讀(152) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-09-25 11:06 長春語林科技 閱讀(448) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-07-12 13:41 長春語林科技 閱讀(116) | 評論 (0)編輯 收藏
          將博客搬至CSDN
          posted @ 2019-04-14 14:57 長春語林科技 閱讀(112) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2019-01-10 17:19 長春語林科技 閱讀(125) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-12-19 10:23 長春語林科技 閱讀(162) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-12-10 12:54 長春語林科技 閱讀(168) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-08-16 16:33 長春語林科技 閱讀(195) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-06-08 10:12 長春語林科技 閱讀(215) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-06-08 10:00 長春語林科技 閱讀(252) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-06-08 09:03 長春語林科技 閱讀(162) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-29 14:00 長春語林科技 閱讀(336) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-29 11:28 長春語林科技 閱讀(429) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-29 11:01 長春語林科技 閱讀(129) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-27 22:28 長春語林科技 閱讀(299) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-25 17:28 長春語林科技 閱讀(136) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-16 12:37 長春語林科技 閱讀(180) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-16 10:34 長春語林科技 閱讀(234) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-12 20:19 長春語林科技 閱讀(138) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-05-10 15:23 長春語林科技 閱讀(201) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-23 20:16 長春語林科技 閱讀(125) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:44 長春語林科技 閱讀(210) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:42 長春語林科技 閱讀(149) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:40 長春語林科技 閱讀(511) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:38 長春語林科技 閱讀(119) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:36 長春語林科技 閱讀(130) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:35 長春語林科技 閱讀(127) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:33 長春語林科技 閱讀(324) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2018-03-06 08:32 長春語林科技 閱讀(137) | 評論 (0)編輯 收藏
          es
               摘要:   閱讀全文
          posted @ 2017-12-27 16:22 長春語林科技 閱讀(132) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-10-19 10:42 長春語林科技 閱讀(130) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-07-19 20:28 長春語林科技 閱讀(176) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-06-15 10:21 長春語林科技 閱讀(189) | 評論 (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)出就成功了,可以到目標(biā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āng)文件很大時,直接無法導(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:\>這樣的標(biāo)志,然后在其后輸入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 長春語林科技 閱讀(191) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-03-14 17:02 長春語林科技 閱讀(134) | 評論 (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 長春語林科技 閱讀(164) | 評論 (0)編輯 收藏
          cat /etc/redhat-release
          posted @ 2017-03-02 10:48 長春語林科技 閱讀(115) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-02-25 16:24 長春語林科技 閱讀(148) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-02-06 15:44 長春語林科技 閱讀(127) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2017-01-09 13:32 長春語林科技 閱讀(141) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-12-07 13:22 長春語林科技 閱讀(86) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-11-11 21:35 長春語林科技 閱讀(199) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-09-27 16:55 長春語林科技 閱讀(412) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-04-25 16:29 長春語林科技 閱讀(230) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-04-07 11:22 長春語林科技 閱讀(252) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-04-07 11:12 長春語林科技 閱讀(272) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-03-29 15:18 長春語林科技 閱讀(164) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2016-03-10 15:38 長春語林科技 閱讀(146) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-20 13:04 長春語林科技 閱讀(224) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-12 09:41 長春語林科技 閱讀(816) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-12 09:30 長春語林科技 閱讀(267) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-07 14:38 長春語林科技 閱讀(189) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-08-07 13:03 長春語林科技 閱讀(195) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2015-03-24 11:06 長春語林科技 閱讀(162) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2014-08-06 14:54 長春語林科技 閱讀(331) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-11-27 17:54 長春語林科技 閱讀(15465) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-05-10 12:30 長春語林科技 閱讀(2949) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-05-03 15:32 長春語林科技 閱讀(237) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-28 16:31 長春語林科技 閱讀(440) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-28 15:19 長春語林科技 閱讀(892) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-28 12:42 長春語林科技 閱讀(4103) | 評論 (1)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-19 22:16 長春語林科技 閱讀(1077) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2012-04-19 10:26 長春語林科技 閱讀(748) | 評論 (0)編輯 收藏
          <2012年4月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

           

          長春語林科技歡迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 石台县| 张家港市| 孟村| 泰和县| 澄城县| 桑日县| 普洱| 兴隆县| 新疆| 井研县| 囊谦县| 巧家县| 越西县| 沙洋县| 东阿县| 扎鲁特旗| 莱州市| 平潭县| 兴仁县| 柘荣县| 高平市| 甘泉县| 云阳县| 乌拉特前旗| 昌平区| 天等县| 新绛县| 竹山县| 奉节县| 道孚县| 屏东市| 宝应县| 土默特右旗| 仁化县| 札达县| 渝北区| 宣威市| 本溪| 稻城县| 渑池县| 济南市|