日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

linux的mysql小记

發布時間:2023/12/19 数据库 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux的mysql小记 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天試著自己安裝mysql數據庫, 前期準備工作: 首先在http://www.mysql.com/downloads/mysql/里面下載兩個文件, (1)MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm (2)MySQL-client-5.6.10-1.linux_glibc2.5.x86_64.rpm 先來說下rpm這個格式: rpm文件是Red Hat公司開發的軟件安裝包,rpm可讓Linux在安裝軟件包時免除許多復雜的手續。該命令在安裝時常用的參數是 –ivh ,其中i表示將安裝指定的rmp軟件包,V表示安裝時的詳細信息,h表示在安裝期間出現“#”符號來顯示目前的安裝過程。這個符號將持續到安裝完成后才停 止。? 完后進入到自己的虛擬機操作,這里提下Vmware tool這個安裝了以后可以在虛擬機和主機之間直接復制粘貼文件,很好用。 下面是在虛擬機上的操作: [root@localhost root]# cd /anzhuang [root@localhost anzhuang]# ls -al 總用量 108376 drwxr-xr-x ? ?2 root ? ? root ? ? ? ? 4096 ?4月 12 16:58 . drwxr-xr-x ? 23 root ? ? root ? ? ? ? 4096 ?4月 12 16:57 .. -rw-r--r-- ? ?1 root ? ? root ? ? 22970964 ?4月 12 16:58 MySQL-client-5.6.10-1.linux_glibc2.5.x86_64.rpm -rw-r--r-- ? ?1 root ? ? root ? ? 87875484 ?4月 12 16:58 MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm [root@localhost anzhuang]# rpm -ivh MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm warning: MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 error: Failed dependencies: libc.so.6(GLIBC_2.3.4) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 ? ? ? ?libc.so.6(GLIBC_2.4) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 libstdc++.so.6 is needed by MySQL-server-5.6.10-1.linux_glibc2.5 libstdc++.so.6(CXXABI_1.3) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 libstdc++.so.6(GLIBCXX_3.4) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 rtld(GNU_HASH) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 mysql conflicts with MySQL-server-5.6.10-1.linux_glibc2.5 mysql-server conflicts with MySQL-server-5.6.10-1.linux_glibc2.5 運行后發現報錯了,網上查了下,估計是以前自帶了mysql,已經安裝好了的。 查看了下確實發現里面有 [root@localhost anzhuang]# rpm -qa |grep -i mysql mysql-devel-3.23.54a-11 perl-DBD-MySQL-2.1021-3 php-mysql-4.2.2-17 libdbi-dbd-mysql-0.6.5-5 mysql-server-3.23.54a-11 mysql-3.23.54a-11 MySQL-python-0.9.1-6 qt-MySQL-3.1.1-6 mod_auth_mysql-1.11-12 里面出現了mysql-server-3.23.54a-11 ?說明存在的 所以先刪除 [root@localhost anzhuang]# rpm -ev mysql-server-3.23.54a-11 后面發現還是不行,又查資料,發現可以在后面加兩個參數--nodeps --force [root@localhost anzhuang]# rpm -ivh MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm warning: MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 error: Failed dependencies: libc.so.6(GLIBC_2.3.4) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 ? ? ? ?libc.so.6(GLIBC_2.4) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 libstdc++.so.6 is needed by MySQL-server-5.6.10-1.linux_glibc2.5 libstdc++.so.6(CXXABI_1.3) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 libstdc++.so.6(GLIBCXX_3.4) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 rtld(GNU_HASH) is needed by MySQL-server-5.6.10-1.linux_glibc2.5 mysql conflicts with MySQL-server-5.6.10-1.linux_glibc2.5 [root@localhost anzhuang]# rpm -ivh MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm -nodeps --force -nodeps: unknown option [root@localhost anzhuang]# rpm -ivh MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm --nodeps --force warning: MySQL-server-5.6.10-1.linux_glibc2.5.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 Preparing... ? ? ? ? ? ? ? ?########################################### [100%] You have more than one PID file: ls: /var/lib/mysql/*.pid: 沒有那個文件或目錄 Please check which one (if any) corresponds to a running server and delete all others before repeating the MySQL upgrade. error: %pre(MySQL-server-5.6.10-1.linux_glibc2.5) scriptlet failed, exit status 1 error: ? install: %pre scriptlet failed (2), skipping MySQL-server-5.6.10-1.linux_glibc2.5 加上那兩個參數的意義就在于,
安裝時不再分析包之間的依賴關系而直接安裝,
也就不會再提示error: Failed dependencies:這樣的錯誤了。 OK 先到這里,可能自己理解的不正確,后面繼續學習哈哈。

轉載于:https://blog.51cto.com/tyl00/1177183

總結

以上是生活随笔為你收集整理的linux的mysql小记的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。