서버관리
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. 웹호스팅 innoDB 메모리 설정 방법

    Category웹호스팅 조회15 좋아요0
    <CPU 사용률이 오르다가 innoDB 메모리 설정 후 안정을 찾은 모습> 출처 : [mysql]innodb 메모리별 설정값 예시 (tistory.com) 대형 커뮤니티 사이트를 통큰 서버에 입주시켰습니다. 입주시키자마다 속도 저하로 이용할 수 없는 지경에 ㅠㅠ 다행히 innoDB 메...
    Read More
  2. 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
  3. 웹호스팅 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
  4. https://www.manualfactory.net/13581#i-3 사용자 조회모든 사용자를 출력합니다.# cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:...

    리눅스 리눅스 / 사용자 / 사용자 조회, 사용자 추가, 사용자 삭제, 사용자 수정

    Category리눅스 조회18 좋아요0
    https://www.manualfactory.net/13581#i-3 사용자 조회모든 사용자를 출력합니다.# cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:...
    Read More
  5. PHP htaccess injection cheat sheet .htaccess: php_value auto_append_file .htaccess #<?php phpinfo(); 출처 https://github.com/sektioneins/pcc/wiki/PHP-htaccess-injection-cheat-sheet

    웹호스팅 웹호스팅에서 php 설정 변경하는 방법

    Category웹호스팅 조회30 좋아요0
    PHP htaccess injection cheat sheet .htaccess: php_value auto_append_file .htaccess #<?php phpinfo(); 출처 https://github.com/sektioneins/pcc/wiki/PHP-htaccess-injection-cheat-sheet
    Read More
  6. Mysql 설치후 phpMyadmin 접속할경우 아래와 같은 메시지가 보일때 조치법이 몇가지 있다. Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. 1. php.in...

    리눅스 리스토리의 IT's/IT Story Mysql 설치후 phpMyadmin 접속 안될때 - Cannot start session

    Category리눅스 조회26 좋아요0
    Mysql 설치후 phpMyadmin 접속할경우 아래와 같은 메시지가 보일때 조치법이 몇가지 있다. Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. 1. php.in...
    Read More
  7. 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
  8. 리눅스 리눅스 그룹 생성/삭제/확인/추가 - groupadd

    Category리눅스 조회18 좋아요0
    https://webdir.tistory.com/134 리눅스시스템에는 사용자를 생성하면 자동으로 사용자명과 같은 그룹이 생성됩니다. 따라서 리눅스에서는 자신의 계정 이름과 동일한 그룹에 반드시 속하게 되며, 특정 그룹을 만들어서 기존의 사용자들이 소속되게 할 수도 있...
    Read More
  9. VPS 요즘 일방문자가 5000~6000씩 찍히는데 이유를 모르겠습니다.

    CategoryVPS 조회33 좋아요0
    제가 사용하고 있는 vultr 서버 모니터인데 근래 해당 일자 서버 사용량은 크게 변동은 있어 보이진 않는데 원인을 모르겠네요. 구글애널리틱스도 보면 크게 차이는 없어 보이는데 라이믹스 통계에서만 그렇게 찍히네요. 트래픽도 크게 튀는 수준이 아니구요. ...
    Read More
  10. 1. putty, mobaxterm 등 SSH 접속프로그램을 설치한다. 2. 서버아이피, 아이디, 비밀번호로 로그인한다. 3. db를 백업한다. 3.1. 내 계정 디렉토리로 이동한다. # cd /home/USERID/ 3.2. ssh 접속프로그램에서 아래 명령어를 입력한다. # mysqldump -u아이디 -...

    웹호스팅 사이트 백업하는 방법

    Category웹호스팅 조회132 좋아요1
    1. putty, mobaxterm 등 SSH 접속프로그램을 설치한다. 2. 서버아이피, 아이디, 비밀번호로 로그인한다. 3. db를 백업한다. 3.1. 내 계정 디렉토리로 이동한다. # cd /home/USERID/ 3.2. ssh 접속프로그램에서 아래 명령어를 입력한다. # mysqldump -u아이디 -...
    Read More
  11. 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
  12. 서비스 상태 확인, 시작, 중지, 재시작 명령어이다. 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
  13. tar -zxvf [파일명.tar.gz]

    서버관리 압축해제

    Category서버관리 조회267 좋아요0
    tar -zxvf [파일명.tar.gz]
    Read More
  14. 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
  15. ./add.sh windbamin windbamin.com www.windbamin.com

    서버관리 신규 유저 생성

    Category서버관리 조회270 좋아요0
    ./add.sh windbamin windbamin.com www.windbamin.com
    Read More
  16. 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
  17. 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
  18. 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
  19. 비밀글입니다.

    서버관리 신규 사용자 생성

    Category서버관리 조회0 좋아요0
    비밀글입니다.
    Read More
  20. 서버이전순서 서버 이전은 아래와 같은 순서로 진행됩니다. (도메인 네임서버 설정이 끝난 경우) 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
Board Pagination Prev 1 2 Next
/ 2
닫기

마이페이지

로그인을 해주세요

네이버로 로그인