UBUNTU的LNMP中的MYSQL公升級記錄

2021-10-06 18:39:44 字數 4819 閱讀 7609

昨天因django框架的需要想公升級一下mysql5.6到5.7, 第一次弄的時候, 我看筆記本螢幕黑屏了, 沒耐心等太久就強制關機了. 代價很慘重, 開機後安裝失敗, 並且以前的也不能用了!

根據lnmp文件說明, 看 /root 下的日誌. 分別看了一下, 其中有乙個有用的:

[ 81%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/init.cc.o

[ 81%] linking cxx static library ../../archive_output_directory/libmysqlpump_lib.a

[ 81%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item.cc.o

[ 81%] built target mysqlpump_lib

scanning dependencies of target mysqlpump

[ 81%] building cxx object client/dump/cmakefiles/mysqlpump.dir/program.cc.o

[ 81%] linking cxx executable mysqlpump

[ 81%] building cxx object sql/cmakefiles/sql.dir/auth/sql_user_table.cc.o

[ 82%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item_buff.cc.o

[ 82%] building cxx object sql/cmakefiles/sql.dir/auth/sql_user.cc.o

[ 82%] built target mysqlpump

[ 82%] building c object sql/cmakefiles/sql.dir/auth/password.c.o

[ 82%] building cxx object sql/cmakefiles/sql.dir/auth/password_policy_service.cc.o

[ 82%] building cxx object sql/cmakefiles/sql.dir/auth/sql_security_ctx.cc.o

[ 82%] building cxx object sql/cmakefiles/sql.dir/auth/service_security_context.cc.o

[ 82%] building cxx object sql/cmakefiles/sql.dir/keyring_service.cc.o

[ 82%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item_cmpfunc.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/bootstrap.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/conn_handler/connection_handler_manager.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/datadict.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/debug_sync.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/derror.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/discover.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/field.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/field_conv.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/filesort.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/filesort_utils.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/aggregate_check.cc.o

[ 83%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item_create.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/geometry_rtree.cc.o

[ 83%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item_func.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/gstream.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/handler.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/hostname.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/init.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/item.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/item_buff.cc.o

[ 83%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item_geofunc.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/item_cmpfunc.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/item_create.cc.o

[ 83%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item_geofunc_buffer.cc.o

[ 83%] building cxx object libmysqld/cmakefiles/sql_embedded.dir/__/sql/item_geofunc_internal.cc.o

[ 83%] building cxx object sql/cmakefiles/sql.dir/item_func.cc.o

[ 84%] building cxx object sql/cmakefiles/sql.dir/item_geofunc.cc.o

[ 84%] building cxx object sql/cmakefiles/sql.dir/item_geofunc_buffer.cc.o

[ 84%] building cxx object sql/cmakefiles/sql.dir/item_geofunc_internal.cc.o

[ 84%] building cxx object sql/cmakefiles/sql.dir/item_geofunc_relchecks.cc.o

[ 84%] building cxx object sql/cmakefiles/sql.dir/item_geofunc_relchecks_bgwrap.cc.o

通過日誌, 看出沒有出什麼問題, 軍哥言.

然後我再重新安裝, 出現以下錯誤:

press any key to start...or press ctrl+c to cancel

====

====

====

====

====

====

====check files==

====

====

====

====

====

====

====

====

mysql-boost-5.7.29.tar.gz [found]

====

====

====

====

====

====

====check files==

====

====

====

====

====

====

====

====

starting backup all databases...

if the database is large, the backup time will be longer.

include/upgrade_mysql.sh: 行 7: /usr/local/mysql/bin/mysqldump: 沒有那個檔案或目錄

mysql databases backup failed,please backup databases manually!

改了一下相應的安裝指令碼, 讓它不再備份, 問題就基本解決了.

總結:

docker建立ubuntu的lnmp映象

本文講述的是如何在原有的ubuntu映象上搭建lnmp開發環境,並生成新的映象。docker pull ubuntu 16.04docker run i t ubuntu 16.04 bash更新ubuntu系統 apt get update安裝php7.0 apt get install php安...

lnmp和lnmp的效能

一般業務大家都使用nginx了.這個是標配,主要是為了以後擴充套件架構以提高訪問量方便,linux上nginx跟php fpm的組合很好.nginx輕量,穩定,高效,跟php fpm通過fastcgi進行網路通訊,松耦合,比如你要開100個php工作程序 1.使用apache mod php則需要開...

perl中my與local的區別

x 9 sub mm sub gg my sub gg local gg my gg local print x 輸出結果是 call my 11 9 call local 20 20 9 可以看出,local函式在建立全域性變數的乙個區域性例項後即可 將它傳遞給任何子例程並繼續進行區域性初始賦值。...