서버관리
2020.05.21 15:53

mysqldump not found

조회 수 374 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄


root@q381-0663:/# mysqldump

bash: mysqldump: command not found


오랜만에 백업해보려니 mysqldump 명령어가 실행되지 않더군요..


$ which mysqldump 


위 명령어가 mysqldump를 찾는 명령어인데, 해보니 없는 거 같더군요.

아마 일전에 php7.4 업데이트할 때 같이 어떻게 되버린거 같았습니다;;



root@q381-0663:/# dpkg -l | grep -i mysql

ii  dbconfig-mysql                        2.0.4ubuntu1                                             all          dbconfig-common MySQL/MariaDB support

ii  libdbd-mysql-perl                     4.033-1ubuntu0.1                                         amd64        Perl5 database interface to the MySQL database

ii  libmysqlclient20:amd64                5.7.29-0ubuntu0.16.04.1                                  amd64        MySQL database client library

iU  mysql-client                          5.7.29-0ubuntu0.16.04.1                                  all          MySQL database client (metapackage depending on the la                                                                                                              test version)

iU  mysql-client-core-5.7                 5.7.29-0ubuntu0.16.04.1                                  amd64        MySQL database core client binaries

ii  mysql-common                          5.7.29-0ubuntu0.16.04.1                                  all          MySQL database common files, e.g. /etc/mysql/my.cnf

ii  php-mysql                             1:7.0+35ubuntu6.1                                        all          MySQL module for PHP [default]

ii  php7.0-mysql                          7.0.33-27+ubuntu16.04.1+deb.sury.org+1                   amd64        MySQL module for PHP

ii  php7.4-mysql                          7.4.5-1+ubuntu16.04.1+deb.sury.org+1                     amd64        MySQL module for PHP

rc  phpmyadmin                            4:4.5.4.1-2ubuntu2.1                                     all          MySQL web administration tool


$ dpkg -l | grep -i mysql


mysqldump를 찾아보니 이렇게 있긴 하던데,


ii가 있고 iU가 있던데 이건 또 뭔지 찾아보니..ㅠ



'ubuntu ii iu 차이' 이라고 구글링해보니깐 뜨더군요.

install Unkown인지 uninstall 인지 여튼-_-; 그런거 같아서..



root@q381-0663:/# apt-get install mysql-client-core-5.7

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:

 mariadb-server-10.0 : Depends: mariadb-client-10.0 (>= 10.0.38-0ubuntu0.16.04.1) but it is not going to be installed

                       Recommends: libhtml-template-perl but it is not going to be installed

 mysql-client : Depends: mysql-client-5.7 but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@q381-0663:/# apt-get install mysql-client-5.7

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:

 mariadb-server-10.0 : Depends: mariadb-client-10.0 (>= 10.0.38-0ubuntu0.16.04.1) but it is not going to be installed

                       Recommends: libhtml-template-perl but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@q381-0663:/# mysqldump

bash: mysqldump: command not found

root@q381-0663:/# apt-get -f install

Reading package lists... Done

Building dependency tree

Reading state information... Done

Correcting dependencies... Done

The following packages were automatically installed and are no longer required:

  apache2-data apache2-utils dbconfig-common dbconfig-mysql fakeroot fonts-dejavu fonts-dejavu-extra gettext javascript-common libapr1 libaprutil1

  libaprutil1-dbd-sqlite3 libaprutil1-ldap libasprintf-dev libfakeroot libgettextpo-dev libgettextpo0 libjs-jquery libjs-sphinxdoc libjs-underscore liblua5.1-0

  libnuma1 libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix2 libssl-dev libssl-doc libunistring0 munin-doc php-gettext php-phpseclib php-tcpdf rrdtool

  zlib1g-dev

Use 'apt autoremove' to remove them.

The following additional packages will be installed:

  mariadb-client-10.0 mariadb-client-core-10.0

The following packages will be REMOVED:

  mysql-client mysql-client-core-5.7

The following NEW packages will be installed:

  mariadb-client-10.0 mariadb-client-core-10.0

0 upgraded, 2 newly installed, 2 to remove and 105 not upgraded.

3 not fully installed or removed.

Need to get 5,448 kB of archives.

After this operation, 14.0 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-client-core-10.0 amd64 10.0.38-0ubuntu0.16.04.1 [4,286 kB]

Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-client-10.0 amd64 10.0.38-0ubuntu0.16.04.1 [1,162 kB]

Fetched 5,448 kB in 2s (2,031 kB/s)

(Reading database ... 107730 files and directories currently installed.)

Removing mysql-client-core-5.7 (5.7.29-0ubuntu0.16.04.1) ...

Processing triggers for man-db (2.7.5-1) ...

Selecting previously unselected package mariadb-client-core-10.0.

(Reading database ... 107721 files and directories currently installed.)

Preparing to unpack .../mariadb-client-core-10.0_10.0.38-0ubuntu0.16.04.1_amd64.deb ...

Unpacking mariadb-client-core-10.0 (10.0.38-0ubuntu0.16.04.1) ...

Processing triggers for man-db (2.7.5-1) ...

dpkg: mysql-client: dependency problems, but removing anyway as you requested:

 dbconfig-mysql depends on mysql-client | mariadb-client | virtual-mysql-client; however:

  Package mysql-client is to be removed.

  Package mariadb-client is not installed.

  Package virtual-mysql-client is not installed.

  Package mariadb-client-10.0 which provides virtual-mysql-client is not installed.


(Reading database ... 107729 files and directories currently installed.)

Removing mysql-client (5.7.29-0ubuntu0.16.04.1) ...

Selecting previously unselected package mariadb-client-10.0.

(Reading database ... 107726 files and directories currently installed.)

Preparing to unpack .../mariadb-client-10.0_10.0.38-0ubuntu0.16.04.1_amd64.deb ...

Unpacking mariadb-client-10.0 (10.0.38-0ubuntu0.16.04.1) ...

Processing triggers for man-db (2.7.5-1) ...

Setting up mariadb-client-core-10.0 (10.0.38-0ubuntu0.16.04.1) ...

Setting up mariadb-client-10.0 (10.0.38-0ubuntu0.16.04.1) ...

Setting up libnuma1:amd64 (2.0.11-1ubuntu1.1) ...

Processing triggers for libc-bin (2.23-0ubuntu11) ...

root@q381-0663:/# mysqldump

Usage: mysqldump [OPTIONS] database [tables]

OR     mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]

OR     mysqldump [OPTIONS] --all-databases [OPTIONS]

For more options, use mysqldump --help


$ apt-get -f install


성공!-_-;


참조

https://askubuntu.com/questions/735711/what-does-ii-mean-in-dpkg-list-command-output




참조

https://zetawiki.com/wiki/%EC%9A%B0%EB%B6%84%ED%88%AC_mysqldump_%EC%84%A4%EC%B9%98



기존대댓글
추가시작 대댓글시작
대댓글끝 추가끝


  1. 서버이전순서 서버 이전은 아래와 같은 순서로 진행됩니다. (도메인 네임서버 설정이 끝난 경우) 1. DB 백업 2. 압축 3. 데이터 전송 4. 압축 해제 5. DB 복원 6. 도메인 설정 변경 1. DB 백업 $ mysqldump -u아이디 -p DB명 > 백업파일명.sql $ 데이터베이스...

    서버관리 서버 이전

    서버이전순서 서버 이전은 아래와 같은 순서로 진행됩니다. (도메인 네임서버 설정이 끝난 경우) 1. DB 백업 2. 압축 3. 데이터 전송 4. 압축 해제 5. DB 복원 6. 도메인 설정 변경 1. DB 백업 $ mysqldump -u아이디 -p DB명 > 백업파일명.sql $ 데이터베이스...
    Read More
  2. https://linuxize.com/post/how-to-back-up-and-restore-mysql-databases-with-mysqldump/ https://linuxize.com/post/how-to-back-up-and-restore-mysql-databases-with-mysqldump/ 이 튜토리얼에서는 mysqldump유틸리티를 사용하여 명령줄에서 MySQL또는 Mar...

    Mysqldump를 사용하여 MySQL데이터베이스를 백업 및 복원하는 방법

    조회175 좋아요0
    https://linuxize.com/post/how-to-back-up-and-restore-mysql-databases-with-mysqldump/ https://linuxize.com/post/how-to-back-up-and-restore-mysql-databases-with-mysqldump/ 이 튜토리얼에서는 mysqldump유틸리티를 사용하여 명령줄에서 MySQL또는 Mar...
    Read More
  3. 참조 : http://blogtoday.tistory.com/942 A2HOSTING의 경우 많은 장점이 있지만, 많은 사용자/많은 접속자/많은 디비 쿼리를 사용하는 경우는 본 호스팅사와 맞지 않습니다. 저도 스패머의 공격으로 인해서 게시물과 회원을 정리하려고 하는데 CPU 제한이 뜨...

    웹호스팅 a2hosting 웹호스팅 단점/후회/불만

    Category웹호스팅 조회177 좋아요0
    참조 : http://blogtoday.tistory.com/942 A2HOSTING의 경우 많은 장점이 있지만, 많은 사용자/많은 접속자/많은 디비 쿼리를 사용하는 경우는 본 호스팅사와 맞지 않습니다. 저도 스패머의 공격으로 인해서 게시물과 회원을 정리하려고 하는데 CPU 제한이 뜨...
    Read More
  4. https://www.a2hosting.com/ FTP 전송속도 : 2MiB/s SSH 지원 SFTP 지원 PHP 버전 : 선택 가능 트래픽 : 제한 없음 도메인 갯수 : 플랜에 따라 1개 또는 제한 없음 cPanel 지원(관리가 용이함) 결제 - 페이팔 결제 가능 서버 위치 - 싱가폴 등

    웹호스팅 [해외]a2hosting

    Category웹호스팅 조회178 좋아요0
    https://www.a2hosting.com/ FTP 전송속도 : 2MiB/s SSH 지원 SFTP 지원 PHP 버전 : 선택 가능 트래픽 : 제한 없음 도메인 갯수 : 플랜에 따라 1개 또는 제한 없음 cPanel 지원(관리가 용이함) 결제 - 페이팔 결제 가능 서버 위치 - 싱가폴 등
    Read More
  5. How to remove imagemagick from Ubuntu 16.04 (Xenial Xerus) Uninstall imagemagickTo remove just imagemagick package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal: sudo apt-get remove imagemagick Uninstall imagemagick and it's de...

    리눅스 How to remove imagemagick from Ubuntu 16.04 (Xenial Xerus)

    Category리눅스 조회187 좋아요0
    How to remove imagemagick from Ubuntu 16.04 (Xenial Xerus) Uninstall imagemagickTo remove just imagemagick package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal: sudo apt-get remove imagemagick Uninstall imagemagick and it's de...
    Read More
  6. Linux, 프로세스 확인(ps,pstree) ps명령어란 현재 리눅스시템에서 사용중인 프로세스의 실행상태를 파악하고 점검하는 명령어이다. 간단하게ps라는 명령어만 사용할시에는 현재 사용자가 실행한 프로세스에 대해서만 출력한다. [root@os1 ~]#ps PID TTYTIME C...

    리눅스 pstree 현재 사용자 프로세스 확인

    Category리눅스 조회189 좋아요0
    Linux, 프로세스 확인(ps,pstree) ps명령어란 현재 리눅스시템에서 사용중인 프로세스의 실행상태를 파악하고 점검하는 명령어이다. 간단하게ps라는 명령어만 사용할시에는 현재 사용자가 실행한 프로세스에 대해서만 출력한다. [root@os1 ~]#ps PID TTYTIME C...
    Read More
  7. VPS Linode VPS의 새로운 콘트롤 패널

    CategoryVPS 조회203 좋아요0
    We're working on a new cloud.linode.com control panel. Feedback appreciated! 어제 리노드에 로그인하니, 새로운 콘트롤 패널 작업을 하고 있다고 합니다. 1) http://cloud.linode.com 에 접속해봅니다. 로그인 화면은 군더더기 없이 깔끔합니다. 2) 서버...
    Read More
  8. 서비스 상태 확인, 시작, 중지, 재시작 명령어이다. CentOS (서비스명: httpd)우분투 (서비스명: apache2)명령어 종류systemctl ★★service/etc/init.d/ ★apachectlhttpd[1]아파치 상태 확인systemctl status apache2service apache2 status/etc/init.d/apache2...

    서버관리 아파치 재실행

    Category서버관리 조회229 좋아요0
    서비스 상태 확인, 시작, 중지, 재시작 명령어이다. CentOS (서비스명: httpd)우분투 (서비스명: apache2)명령어 종류systemctl ★★service/etc/init.d/ ★apachectlhttpd[1]아파치 상태 확인systemctl status apache2service apache2 status/etc/init.d/apache2...
    Read More
  9. https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_tar_%ED%8A%B9%EC%A0%95%ED%8F%B4%EB%8D%94_%EC%A0%9C%EC%99%B8%ED%95%98%EA%B3%A0_%EC%95%95%EC%B6%95%ED%95%98%EA%B8%B0 https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_tar_%ED%8A%B9%EC%A...

    리눅스 리눅스 tar 특정폴더 제외하고 압축하기

    Category리눅스 조회235 좋아요0
    https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_tar_%ED%8A%B9%EC%A0%95%ED%8F%B4%EB%8D%94_%EC%A0%9C%EC%99%B8%ED%95%98%EA%B3%A0_%EC%95%95%EC%B6%95%ED%95%98%EA%B8%B0 https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_tar_%ED%8A%B9%EC%A...
    Read More
  10. chown -R windbamin:windbamin /home/windbamin chmod +w /home/windbamin/ ls -all /home/

    서버관리 소유자 권한 설정

    Category서버관리 조회258 좋아요0
    chown -R windbamin:windbamin /home/windbamin chmod +w /home/windbamin/ ls -all /home/
    Read More
  11. 리눅스 [Laravel] 라라벨 설치하기 PHP7.0 + Nginx

    Category리눅스 조회265 좋아요0
    https://blog.storyg.co/laravels/install-on-ubuntu16-with-php7-and-nginx https://blog.storyg.co/laravels/install-on-ubuntu16-with-php7-and-nginx 1. 업데이트 # apt update 2. 설정 변경 /etc/php/7.0/fpm/php.ini를 설정 파일에서 cgi.fix_pathinfo를...
    Read More
  12. tar -zxvf [파일명.tar.gz]

    서버관리 압축해제

    Category서버관리 조회267 좋아요0
    tar -zxvf [파일명.tar.gz]
    Read More
  13. ./add.sh windbamin windbamin.com www.windbamin.com

    서버관리 신규 유저 생성

    Category서버관리 조회270 좋아요0
    ./add.sh windbamin windbamin.com www.windbamin.com
    Read More
  14. https://www.gandi.net/domain/suggest?currency=USD .io나 .in 도메인을 구매할 때 저렴하게 살 수 있겠군요.

    기타 해외도메인 구입 사이트 gandi.net

    Category기타 조회298 좋아요0
    https://www.gandi.net/domain/suggest?currency=USD .io나 .in 도메인을 구매할 때 저렴하게 살 수 있겠군요.
    Read More
  15. https://blog.lael.be/post/44 https://www.xpressengine.com/hosting_info/22670006 http://bboong.kr/207 http://funnylog.kr/665 http://itandgame.tistory.com/89 https://blog.outsider.ne.kr/791

    VPS 국내 클라우드 서버호스팅 비교(Virtual Private Server Review)

    CategoryVPS 조회318 좋아요0
    https://blog.lael.be/post/44 https://www.xpressengine.com/hosting_info/22670006 http://bboong.kr/207 http://funnylog.kr/665 http://itandgame.tistory.com/89 https://blog.outsider.ne.kr/791
    Read More
  16. 기타 해외 호스팅의 결제 및 환불 (a2hosting 환불 했습니다.)

    Category기타 조회354 좋아요0
    해외 호스팅의 결제 및 환불 - a2hosting, digital ocean, conoha, ipage A2hosting 지난 1월에 a2hosting을 처음 사용해보았습니다. 무난한 속도에 비교적 체감상 빠른 XE의 성능에 반해 마침 호스팅 기간도 만료가 되는 시점이라 국내 엔플린트 웹호스팅에서...
    Read More
  17. root@q381-0663:/# mysqldump bash: mysqldump: command not found 오랜만에 백업해보려니 mysqldump 명령어가 실행되지 않더군요.. $ which mysqldump 위 명령어가 mysqldump를 찾는 명령어인데, 해보니 없는 거 같더군요. 아마 일전에 php7.4 업데이트할 때 ...

    서버관리 mysqldump not found

    Category서버관리 조회374 좋아요0
    root@q381-0663:/# mysqldump bash: mysqldump: command not found 오랜만에 백업해보려니 mysqldump 명령어가 실행되지 않더군요.. $ which mysqldump 위 명령어가 mysqldump를 찾는 명령어인데, 해보니 없는 거 같더군요. 아마 일전에 php7.4 업데이트할 때 ...
    Read More
  18. 국내 및 해외 가상서버호스팅(VPS) 비교 http://itrooms.tistory.com/139 각종 클라우드 VPS 서비스 비교해본 소감 https://www.clien.net/service/board/use/8540159

    VPS 각종 클라우드 VPS 서비스 비교해본 소감

    CategoryVPS 조회395 좋아요0
    국내 및 해외 가상서버호스팅(VPS) 비교 http://itrooms.tistory.com/139 각종 클라우드 VPS 서비스 비교해본 소감 https://www.clien.net/service/board/use/8540159
    Read More
  19. 리눅스 Linux/Ubuntu, 용량 큰 파일/디렉토리 찾아내기.

    Category리눅스 조회536 좋아요0
    Linux/Ubuntu, 용량 큰 파일/디렉토리 찾아내기. 출처: https://technote.kr/165 [TechNote.kr] 리눅스에서 파일 사이즈를 아는 방법은 다양하다. 흔히 사용하는 ls를 사용할 수도 있고, du를 사용하는 방법 또한 있다. 여기서는 du를 사용해 보고자 한다. # d...
    Read More
  20. 리눅스 Htop (Linux Process Monitoring) 사용법

    Category리눅스 조회1417 좋아요1
    1. Htop란 Htop란 텍스트모드 대화식 프로세스 뷰어로 MS 윈도우의 '작업관리자'와 비슷하며 cpu 사용량, 메모리 사용량 등 리눅스 운영체제에서 시스템 자원을 비쥬얼적으로 모니터링이 가능합니다. 다양한 기능을 가지면서 손쉽세 사용할 수 있다는 것이 Hto...
    Read More
Board Pagination Prev 1 2 Next
/ 2
닫기

마이페이지

로그인을 해주세요

네이버로 로그인