찾다

MYSQL表空间迁移

Jun 07, 2016 pm 03:09 PM
linuxmysql지역 사회공간법정이주하다입력하다

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 32.ERROR 1031 (HY000): Table storage engine for 'city' doesn't havethis option 33.mysql alter table cityengine=innodb; 34.mysql flush table cityfor export; --对表加锁。 35.Query OK, 0 r

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

 

  32.ERROR 1031 (HY000): Table storage engine for 'city' doesn't havethis option

  33.mysql> alter table cityengine=innodb;

  34.mysql> flush table cityfor export; --对表加锁。

  35.Query OK, 0 rows affected (0.18 sec)

  36.

  复制表文件到目标位置

  C:\ProgramData\MySQL\MySQL     Server 5.6\data\world>mkdir city

  C:\ProgramData\MySQL\MySQL     Server 5.6\data\world>copy city.* city

  city.cfg

  city.frm

  city.ibd

  3 file(s) copied.

  C:\ProgramData\MySQL\MySQL     Server 5.6\data\world>cd city

  C:\ProgramData\MySQL\MySQL     Server 5.6\data\world\city>dir

  Volume in drive C has no label.

  Volume Serial Number is D0FA-F7A0

  Directory of C:\ProgramData\MySQL\MySQL     Server 5.6\data\world\city

  10/10/2013  10:58 AM   

          .

  10/10/2013  10:58 AM   

          ..

  10/10/2013  10:53 AM               582 city.cfg

  10/10/2013  10:53 AM             8,710 city.frm

  10/10/2013  10:53 AM           475,136 city.ibd

  3 File(s)        484,428 bytes

  2 Dir(s)  224,676,024,320 bytes free

  在目标库上删除可能存在的同名表空间。

  mysql> unlock tables;--释放锁。

  2. Query OK, 0 rowsaffected (0.07 sec)

  3. mysql> alter table city discard tablespace;删除可能存在的同名表空间

  4. Query OK, 0 rowsaffected (0.23 sec)

  5. mysql> selectcount(*) from city;

  6. ERROR 1814 (HY000):Tablespace has been discarded for table 'city'

  7. mysql> alter tablecity import tablespace;

  8. ERROR 1146 (42S02):Table 'world.city' doesn't exist

  9. C:\ProgramData\MySQL\MySQLServer 5.6\data\world\city>copy city.* ..

  10.city.cfg

  11.city.frm

  12.Overwrite ..\city.frm? (Yes/No/All): yes

  13.Access is denied.

  14.city.ibd

  15.        2 file(s) copied.

  16.C:\ProgramData\MySQL\MySQL Server 5.6\data\world\city>

  17.mysql> alter table city import tablespace;

  18.Query OK, 0 rows affected (0.94 sec)

  19.mysql> select count(*) from city;

  20.+----------+

  21.| count(*) |

  22.+----------+

  23.|     4079 |

  24.+----------+

  25.1 row in set (0.08 sec)

  表空间被成功。

  [1] [2] 

MYSQL表空间迁移

성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
MySQL에서 뷰를 사용하는 한계는 무엇입니까?MySQL에서 뷰를 사용하는 한계는 무엇입니까?May 14, 2025 am 12:10 AM

mysqlviewshavelimitations : 1) 그들은 upportallsqloperations, datamanipulation throughviewswithjoinsorbqueries를 제한하지 않습니다

MySQL 데이터베이스 확보 : 사용자 추가 및 권한 부여MySQL 데이터베이스 확보 : 사용자 추가 및 권한 부여May 14, 2025 am 12:09 AM

적절한 usermanagementInmysqliscrucialforenhancingsecurityandensuringfefficientDatabaseOperation.1) USECREATEUSERTOWDDUSERS,@'localHost'or@'%'.

MySQL에서 사용할 수있는 트리거 수에 영향을 미치는 요인은 무엇입니까?MySQL에서 사용할 수있는 트리거 수에 영향을 미치는 요인은 무엇입니까?May 14, 2025 am 12:08 AM

mysqldoes notimposeahardlimitontriggers, butpracticalfactorsdeteirefectiveuse : 1) ServerConfigurationimpactStriggerManagement; 2) 복잡한 트리거 스케일 스케일 사이드로드; 3) argertableSlowtriggerTriggerPerformance; 4) High ConconcercencyCancaUspriggerContention; 5) m

MySQL : Blob을 저장하는 것이 안전합니까?MySQL : Blob을 저장하는 것이 안전합니까?May 14, 2025 am 12:07 AM

예, It 'safetostoreBlobdatainmysql, butconsidertheStefactors : 1) StoragesPace : BlobScanconSumeSignificantspace, 잠재적으로 증가하는 CostsandSlownperformance

MySQL : PHP 웹 인터페이스를 통해 사용자 추가MySQL : PHP 웹 인터페이스를 통해 사용자 추가May 14, 2025 am 12:04 AM

PHP 웹 인터페이스를 통해 MySQL 사용자를 추가하면 MySQLI 확장 기능을 사용할 수 있습니다. 단계는 다음과 같습니다. 1. MySQL 데이터베이스에 연결하고 MySQLI 확장자를 사용하십시오. 2. 사용자를 생성하고 CreateUser 문을 사용하고 Password () 함수를 사용하여 암호를 암호화하십시오. 3. SQL 주입 방지 및 MySQLI_REAL_ESCAPE_STRING () 함수를 사용하여 사용자 입력을 처리하십시오. 4. 새 사용자에게 권한을 할당하고 보조금 명세서를 사용하십시오.

MySQL : Blob 및 기타없는 SQL 스토리지, 차이점은 무엇입니까?MySQL : Blob 및 기타없는 SQL 스토리지, 차이점은 무엇입니까?May 13, 2025 am 12:14 AM

mysql'sblobissuilableforstoringbinarydatawithinareldatabase, whilenosqloptionslikemongodb, redis, and cassandraofferflexible, scalablesolutionsforunstuctureddata.blobissimplerbutcanslowwownperformance를 사용하는 것들보업 betterscal randaysand

MySQL 추가 사용자 : 구문, 옵션 및 보안 모범 사례MySQL 추가 사용자 : 구문, 옵션 및 보안 모범 사례May 13, 2025 am 12:12 AM

TOADDAUSERINMYSQL, 사용 : CreateUser'UserName '@'host'IdentifiedBy'Password '; 여기서'showTodoitseciRely : 1) ChoosetheHostCareLyTocon trolaccess.2) setResourcelimitswithOptionslikemax_queries_per_hour.3) Usestrong, iriquepasswords.4) enforcessl/tlsconnectionswith

MySQL : 문자열 데이터 유형을 피하는 방법 일반적인 실수?MySQL : 문자열 데이터 유형을 피하는 방법 일반적인 실수?May 13, 2025 am 12:09 AM

toavoidcommonmistakeswithstringdatatypesinmysql, stroundStringTypenuances, chooseTherightType, andManageEncodingAndCollationSettingSefectively.1) usecharforfixed-lengthstrings, varcharvariable-length, andtext/blobforlargerdata.2) setcarcatter

See all articles

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

Video Face Swap

Video Face Swap

완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

뜨거운 도구

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

SublimeText3 Linux 새 버전

SublimeText3 Linux 새 버전

SublimeText3 Linux 최신 버전

Eclipse용 SAP NetWeaver 서버 어댑터

Eclipse용 SAP NetWeaver 서버 어댑터

Eclipse를 SAP NetWeaver 애플리케이션 서버와 통합합니다.

MinGW - Windows용 미니멀리스트 GNU

MinGW - Windows용 미니멀리스트 GNU

이 프로젝트는 osdn.net/projects/mingw로 마이그레이션되는 중입니다. 계속해서 그곳에서 우리를 팔로우할 수 있습니다. MinGW: GCC(GNU Compiler Collection)의 기본 Windows 포트로, 기본 Windows 애플리케이션을 구축하기 위한 무료 배포 가능 가져오기 라이브러리 및 헤더 파일로 C99 기능을 지원하는 MSVC 런타임에 대한 확장이 포함되어 있습니다. 모든 MinGW 소프트웨어는 64비트 Windows 플랫폼에서 실행될 수 있습니다.

DVWA

DVWA

DVWA(Damn Vulnerable Web App)는 매우 취약한 PHP/MySQL 웹 애플리케이션입니다. 주요 목표는 보안 전문가가 법적 환경에서 자신의 기술과 도구를 테스트하고, 웹 개발자가 웹 응용 프로그램 보안 프로세스를 더 잘 이해할 수 있도록 돕고, 교사/학생이 교실 환경 웹 응용 프로그램에서 가르치고 배울 수 있도록 돕는 것입니다. 보안. DVWA의 목표는 다양한 난이도의 간단하고 간단한 인터페이스를 통해 가장 일반적인 웹 취약점 중 일부를 연습하는 것입니다. 이 소프트웨어는