서버관리
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. 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
  2. 리눅스 [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
  3. 리눅스 top 에서 실행 중인 프로세스에서 어떤 파일이 사용되는지 파악하는 방법

    Category리눅스 조회58 좋아요0
    lsof -p 18644 혹은 /proc/18644/fd 에서 FD 확인하세용 lsof -u opeanut 유저명으로 프로세스 확인하는 방법 #lsof 만약 lsof 했는데 아무런 반응이 없다면, lsof를 설치해줘야 합니다. https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_lsof_%EC%84%A...
    Read More
  4. 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
  5. http://faq.hostway.co.kr/Linux_Mail/3484http://faq.hostway.co.kr/Linux_Mail/3484 1. 메일 큐 전체 비우기 # postfix flush 또는 postfix -f 2. 현재 쌓인 메일 확인 # mailq 3. 메일큐 전체 삭제 # postsuper -d ALL 4. 메일큐에서 deferred 된 메일만 삭...

    리눅스 postfix 메일에서 queue 관리

    Category리눅스 조회152 좋아요0
    http://faq.hostway.co.kr/Linux_Mail/3484http://faq.hostway.co.kr/Linux_Mail/3484 1. 메일 큐 전체 비우기 # postfix flush 또는 postfix -f 2. 현재 쌓인 메일 확인 # mailq 3. 메일큐 전체 삭제 # postsuper -d ALL 4. 메일큐에서 deferred 된 메일만 삭...
    Read More
  6. https://extrememanual.net/10557 https://extrememanual.net/10557 NGINX 설정 예시1. abc.com 가상 호스트 server { listen 80; server_name abc.com; location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.1-fpm.s...

    리눅스 NGINX PHP-FPM 업데이트 및 여러 버전 동시 연동 방법

    Category리눅스 조회136 좋아요0
    https://extrememanual.net/10557 https://extrememanual.net/10557 NGINX 설정 예시1. abc.com 가상 호스트 server { listen 80; server_name abc.com; location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.1-fpm.s...
    Read More
  7. 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
  8. 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
  9. https://to-dy.tistory.com/58 https://to-dy.tistory.com/58 http://blog.naver.com/PostView.nhn?blogId=tollu09&logNo=220845838393 http://blog.naver.com/PostView.nhn?blogId=tollu09&logNo=220845838393 https://inma.tistory.com/98 https://inma.tist...

    서버관리 Mysql 비밀번호 변경하는 방법

    Category서버관리 조회69 좋아요0
    https://to-dy.tistory.com/58 https://to-dy.tistory.com/58 http://blog.naver.com/PostView.nhn?blogId=tollu09&logNo=220845838393 http://blog.naver.com/PostView.nhn?blogId=tollu09&logNo=220845838393 https://inma.tistory.com/98 https://inma.tist...
    Read More
  10. 리눅스 Linux/Ubuntu, 용량 큰 파일/디렉토리 찾아내기.

    Category리눅스 조회536 좋아요0
    Linux/Ubuntu, 용량 큰 파일/디렉토리 찾아내기. 출처: https://technote.kr/165 [TechNote.kr] 리눅스에서 파일 사이즈를 아는 방법은 다양하다. 흔히 사용하는 ls를 사용할 수도 있고, du를 사용하는 방법 또한 있다. 여기서는 du를 사용해 보고자 한다. # d...
    Read More
  11. 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
  12. VPS Linode VPS 디스크 용량 변경 방법

    CategoryVPS 조회99 좋아요0
    Linode의 서비스를 8GB를 사용하다가, 12GB로 변경했습니다. 기본적으로 메모리/용량/트래픽이 모두 2배로 증가합니다. cpu/램 성능/트래픽 문제로 서비스를 증설해서 디스크 관련으로는 신경쓰지 않았습니다만, 백업파일을 만들려다보니 디스크 용량이 부족했...
    Read More
  13. 웹호스팅 innoDB 메모리 설정 방법

    Category웹호스팅 조회15 좋아요0
    <CPU 사용률이 오르다가 innoDB 메모리 설정 후 안정을 찾은 모습> 출처 : [mysql]innodb 메모리별 설정값 예시 (tistory.com) 대형 커뮤니티 사이트를 통큰 서버에 입주시켰습니다. 입주시키자마다 속도 저하로 이용할 수 없는 지경에 ㅠㅠ 다행히 innoDB 메...
    Read More
  14. 비밀글입니다.

    웹호스팅 http://rael.me/support.php

    Category웹호스팅 조회0 좋아요0
    비밀글입니다.
    Read More
  15. 리눅스 Htop (Linux Process Monitoring) 사용법

    Category리눅스 조회1417 좋아요1
    1. Htop란 Htop란 텍스트모드 대화식 프로세스 뷰어로 MS 윈도우의 '작업관리자'와 비슷하며 cpu 사용량, 메모리 사용량 등 리눅스 운영체제에서 시스템 자원을 비쥬얼적으로 모니터링이 가능합니다. 다양한 기능을 가지면서 손쉽세 사용할 수 있다는 것이 Hto...
    Read More
  16. 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
  17. 웹호스팅 HestiaCP 설치방법

    Category웹호스팅 조회12 좋아요0
    1. Install https://hestiacp.com/install.html 원하는 옵션을 선택 후에 ①을 복사해서 서버에 다운로드합니다. ② 를 복사해서 설치를 진행합니다. 쉽죠? 2. HESTIACP DOC https://hestiacp.com/docs/introduction/getting-started.html 3. HestiaCP Forum htt...
    Read More
  18. 1. 버그 패치하는 방법 2. memcached 설치방법 3. redis 설치 방법 sudo apt install redis-server sudo systemctl restart apache2 # Apache를 사용하는 경우 sudo systemctl restart nginx # Nginx를 사용하는 경우 3.2.서버시작 sudo systemctl start redis...

    웹호스팅 HestiaCP 사용방법

    Category웹호스팅 조회12 좋아요0
    1. 버그 패치하는 방법 2. memcached 설치방법 3. redis 설치 방법 sudo apt install redis-server sudo systemctl restart apache2 # Apache를 사용하는 경우 sudo systemctl restart nginx # Nginx를 사용하는 경우 3.2.서버시작 sudo systemctl start redis...
    Read More
  19. https://jjeongil.tistory.com/834 https://blog.kerus.net/1645/install-php-7-4-fpm-remirepo-on-centos/

    리눅스 CentOS PHP/PHP-FPM 설치방법

    Category리눅스 조회24 좋아요0
    https://jjeongil.tistory.com/834 https://blog.kerus.net/1645/install-php-7-4-fpm-remirepo-on-centos/
    Read More
  20. 참조 : http://blogtoday.tistory.com/942 A2HOSTING의 경우 많은 장점이 있지만, 많은 사용자/많은 접속자/많은 디비 쿼리를 사용하는 경우는 본 호스팅사와 맞지 않습니다. 저도 스패머의 공격으로 인해서 게시물과 회원을 정리하려고 하는데 CPU 제한이 뜨...

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

    Category웹호스팅 조회177 좋아요0
    참조 : http://blogtoday.tistory.com/942 A2HOSTING의 경우 많은 장점이 있지만, 많은 사용자/많은 접속자/많은 디비 쿼리를 사용하는 경우는 본 호스팅사와 맞지 않습니다. 저도 스패머의 공격으로 인해서 게시물과 회원을 정리하려고 하는데 CPU 제한이 뜨...
    Read More
Board Pagination Prev 1 2 Next
/ 2
닫기

마이페이지

로그인을 해주세요

네이버로 로그인