loldb遷移遇到的問題

來源:互聯網
上載者:User

loldb遷移遇到的問題 1:loldb.*.com網站從一個機器遷移到另外一共機器上遇到一個問題,session丟失,在英語、德語、俄語之間切換時session丟失,提示讓輸入使用者名稱和密碼,開始我認為是時區的問題,後來確定不是該問題後來終於找到的原因:php程式中指定的session name和php.ini中指定的不同; session.name = ECSESSID ##預設的配置session.name = PHPSESSID 呵呵php.ini的配置問題! 2:loldb從原來的機器遷移到新機器,對了好多圖片,##loldb遷移間隔了兩天的時間,沒有將web資料導過去後,直接修改瞭解析!原因:圖片檔案沒有放在svn server中。圖片是通過loldb的後台上傳的。因為間隔了兩天的時間,所以丟失了不少圖片檔案,開始我還納悶怎麼會丟圖片啊! 3:loldb 網站的資料庫遷移 我查看loldb的檔案發現其實MyISAM儲存引擎的檔案格式,領導也告知是MyISAM的檔案格式。我於是將資料庫壓縮後,修改了設定檔,將原來的ib_data及幾個記錄檔都移走了,然後重新啟動mysql,mysql啟動後卻發現網站不能正常顯示了,原來是loldb資料庫中有一個表是innodb格式, 我直接移走了ib_data檔案,就造成了資料的丟失!解決方案:修改表的儲存引擎,從innodb修改為MYiSAM或將loldb資料庫導成sql,然後在新機器上直接匯入即可! 4:安裝完postfix和sendmail後就可以使用發郵件的功能(不需要額外的配置!):測試方法:mail -s "Hello Xiaojie"  76445449@qq.com < mail.txt  5:同事使用windows 2008 虛擬了幾個linux虛擬機器,但是在linux虛擬機器上找不到網卡!解決方案:hyper-v下linux虛擬機器找不到網卡的解決辦法:     其實問題很簡單,就是linux虛擬機器系統上沒有hyper-v裡網卡的驅動,解決辦法就是在hyper-v的虛擬機器設定裡,刪除掉網路介面卡,然後添加硬體-添加一箇舊版網路介面卡-選擇外部網路, 開機後,linux就認出網卡了,就這麼簡單。 6:遷移mysql 資料庫時遇到問題:130506  1:52:51 [ERROR] Missing system table mysql.proxies_priv; please run mysql_upgrade to create it130506  1:52:51 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure130506  1:52:51 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure130506  1:52:51 [Note] Event Scheduler: Loaded 0 events130506  1:52:51 [Note] /data/mysql/bin/mysqld: ready for connections.  ##以上是mysql後台日誌的報錯!解決方案: Version: '5.5.30-log'  socket: '/data/mysql/mysql.sock'  port: 3306  Source distribution[root@loldb var]# /data/mysql/bin/mysql_upgrade      ##開始我這樣啟動並執行  Looking for 'mysql' as: /data/mysql/bin/mysqlLooking for 'mysqlcheck' as: /data/mysql/bin/mysqlcheckRunning 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/data/mysql/mysql.sock' /data/mysql/bin/mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connectFATAL ERROR: Upgrade failed[root@loldb var]# /data/mysql/bin/mysql_upgrade -uroot -pku*****1601 ##加入使用者名稱和密碼就可以了Looking for 'mysql' as: /data/mysql/bin/mysqlLooking for 'mysqlcheck' as: /data/mysql/bin/mysqlcheckRunning 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/data/mysql/mysql.sock' Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/data/mysql/mysql.sock' mysql.columns_priv                                 OKmysql.db                                           OKmysql.event                                        OK 7:書寫了備份指令碼通過ftp上傳,但發現沒有ftp命令,解決方案:linux下找不到ftp命令, 開始我試著安裝vsftp ,安裝成功後還是找不到ftp命令!解決方案:yum -y install ftp 8:loldb輸入使用者名稱和密碼後,登陸失敗,重新整理一次才可以登陸:開始我認為是資料庫的問題,因為mysql使用的系統預設的設定檔,所以負載大一點,肯定就有問題! 於是對設定檔進行調整 ,調整後還有問題:故障報錯, [root@***** logs]# cat error_log | grep  http://l**db.***.com/user/login[Mon Apr 22 05:17:52 2013] [error] [client 122.**.**.98] PHP Fatal error:  Call to undefined function mcrypt_encrypt() in /var/www/html/data/app/***/pro***ted/com***nts/Custom.php on line 732, referer: http://l***b.***.com/user/login[Mon Apr 22 09:09:57 2013] [error] [client 122.***.***.98] PHP Notice:  Trying to get property of non-object in 故障原因:php程式中需要需要到 mcrypt_encrypt() 函數,而機器上沒有安裝相應的php擴充!安裝mcrypt擴充即可
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.