2013-09-26 5 views
1

나는 내 문제의 시작입니다 생각으로 시작 "테이블이 존재 나던".MySQL을

그러나 XAMPP에서 MySql 모듈을 다시 시작할 수 없습니다.

11:02:54 [mysql] Attempting to start MySQL app... 

내가 인터넷과 내가 찾은 유일한 작업 솔루션을 보았다

10:57:49 [mysql] Error: MySQL shutdown unexpectedly. 
10:57:49 [mysql] This may be due to a blocked port, missing dependencies, 
10:57:49 [mysql] improper privileges, a crash, or a shutdown by another method. 
10:57:49 [mysql] Press the Logs button to view error logs and check 
10:57:49 [mysql] the Windows Event Viewer for more clues 
10:57:49 [mysql] If you need more help, copy and post this 
10:57:49 [mysql] entire log window on the forums 

이 오류를 던지고 아무것도했지만, 각각 시작하기 전에 에게 mysql을/데이터 /을 ibdata1 파일을 삭제했다 . 나는 더러운 해결책을 알고 있었지만 효과가 있었고 많은 시간을 낭비하고 싶지 않았습니다.

실제 문제 : 새 테이블을 추가했습니다. 다음 재시작 (ibdata1 파일의 삭제 포함) 후에 phpMyAdmin의 왼쪽 열에있는 표를 보았습니다. 그러나 "+"를 클릭하면 그 전체가 비어 있습니다. 이름을 클릭하면 오류가 발생합니다.

#1146 table doesnt exist 

같은 이름으로 새 테이블을 만들려고해도 동일한 오류가 발생합니다. > 같은 - \의 XAMPP :

2013-09-27 11:17:21 4284 [Note] Plugin 'FEDERATED' is disabled. 
2013-09-27 11:17:21 21e8 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 
2013-09-27 11:17:21 4284 [Note] InnoDB: The InnoDB memory heap is disabled 
2013-09-27 11:17:21 4284 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2013-09-27 11:17:21 4284 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2013-09-27 11:17:21 4284 [Note] InnoDB: Not using CPU crc32 instructions 
2013-09-27 11:17:21 4284 [Note] InnoDB: Initializing buffer pool, size = 16.0M 
2013-09-27 11:17:21 4284 [Note] InnoDB: Completed initialization of buffer pool 
2013-09-27 11:17:21 4284 [Note] InnoDB: The first specified data file C:\xampp\mysql\data\ibdata1 did not exist: a new database to be created! 
2013-09-27 11:17:21 4284 [Note] InnoDB: Setting file C:\xampp\mysql\data\ibdata1 size to 10 MB 
2013-09-27 11:17:21 4284 [Note] InnoDB: Database physically writes the file full: wait... 
2013-09-27 11:17:21 4284 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 5 MB 
2013-09-27 11:17:21 4284 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 5 MB 
2013-09-27 11:17:21 4284 [Note] InnoDB: Renaming log file C:\xampp\mysql\data\ib_logfile101 to C:\xampp\mysql\data\ib_logfile0 
2013-09-27 11:17:21 4284 [Warning] InnoDB: New log files created, LSN=45781 
2013-09-27 11:17:21 4284 [Note] InnoDB: Doublewrite buffer not found: creating new 
2013-09-27 11:17:21 4284 [Note] InnoDB: Doublewrite buffer created 
2013-09-27 11:17:22 4284 [Note] InnoDB: 128 rollback segment(s) are active. 
2013-09-27 11:17:22 4284 [Warning] InnoDB: Creating foreign key constraint system tables. 
2013-09-27 11:17:22 4284 [Note] InnoDB: Foreign key constraint system tables created 
2013-09-27 11:17:22 4284 [Note] InnoDB: Creating tablespace and datafile system tables. 
2013-09-27 11:17:22 4284 [Note] InnoDB: Tablespace and datafile system tables created. 
2013-09-27 11:17:22 4284 [Note] InnoDB: Waiting for purge to start 
2013-09-27 11:17:22 4284 [Note] InnoDB: 5.6.11 started; log sequence number 0 
2013-09-27 11:17:22 4284 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 9dce5432-2755-11e3-835a-20689d9d84a8. 
2013-09-27 11:17:22 4284 [Note] Server hostname (bind-address): '*'; port: 3306 
2013-09-27 11:17:22 4284 [Note] IPv6 is available. 
2013-09-27 11:17:22 4284 [Note] - '::' resolves to '::'; 
2013-09-27 11:17:22 4284 [Note] Server socket created on IP: '::'. 
2013-09-27 11:34:15 3928 [Note] Plugin 'FEDERATED' is disabled. 
2013-09-27 11:34:15 12d0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 
2013-09-27 11:34:15 3928 [Note] InnoDB: The InnoDB memory heap is disabled 
2013-09-27 11:34:15 3928 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2013-09-27 11:34:15 3928 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2013-09-27 11:34:15 3928 [Note] InnoDB: Not using CPU crc32 instructions 
2013-09-27 11:34:15 3928 [Note] InnoDB: Initializing buffer pool, size = 16.0M 
2013-09-27 11:34:15 3928 [Note] InnoDB: Completed initialization of buffer pool 
2013-09-27 11:34:15 3928 [Note] InnoDB: Highest supported file format is Barracuda. 
2013-09-27 11:34:15 3928 [Note] InnoDB: The log sequence numbers 0 and 0 in ibdata files do not match the log sequence number 2203529 in the ib_logfiles! 
2013-09-27 11:34:15 3928 [Note] InnoDB: Database was not shutdown normally! 
2013-09-27 11:34:15 3928 [Note] InnoDB: Starting crash recovery. 
2013-09-27 11:34:15 3928 [Note] InnoDB: Reading tablespace information from the .ibd files... 
2013-09-27 11:34:15 3928 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace mysql/innodb_index_stats uses space ID: 2 at filepath: .\mysql\innodb_index_stats.ibd. Cannot open tablespace mydatabase/blackboard which uses space ID: 2 at filepath: .\tum_mitfahrer_app\blackboard.ibd 
InnoDB: Error: could not open single-table tablespace file .\tum_mitfahrer_app\blackboard.ibd 
InnoDB: We do not continue the crash recovery, because the table may become 
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it. 
InnoDB: To fix the problem and start mysqld: 
InnoDB: 1) If there is a permission problem in the file and mysqld cannot 
InnoDB: open the file, you should modify the permissions. 
InnoDB: 2) If the table is not needed, or you can restore it from a backup, 
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal 
InnoDB: crash recovery and ignore that table. 
InnoDB: 3) If the file system or the disk is broken, and you cannot remove 
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf 
InnoDB: and force InnoDB to continue crash recovery here. 

윈도우 8에 자사의 실행 권한 누락에 대해 뭔가 할 수 있지만 나는 C에서 XAMPP 다시 설치 : C :에 \ 프로그램 파일 \ XAMPP를

는 XAMPP 로그 파일입니다 문제. 나는 그것을 시작하기 위해 ibdata1을 삭제해야하고, 내가 만드는 모든 새로운 테이블은 그 후에 사라진다.

+0

데이터베이스를 어떻게 내보내거나 가져 왔습니까? – BT643

+0

phpmyAdmin (서버 버전 : 5.5.29)에서 방금 내보내기 (SQL)를 클릭 한 다음 내 로컬 xampp (서버 버전 : 5.6.11)의 phpmyAdmin 인스턴스에 파일을 가져 왔습니다. – Simon

+1

그리고 말한 것을 시도해 보셨습니까? "_ 로그 버튼을 눌러 오류 로그를보고 Windows 이벤트 뷰어에서 더 많은 단서를 확인하십시오".여기에 게시 할 수있는 정보가 더 많아서 정확히 무슨 일이 일어나는지 알 수 있습니다. – BT643

답변

0

MySQL 5.6에서는 known bug으로 보입니다.

[2012년 11월 27일 8시 39분가] 써니 방 이 버그 # 67179의 중복 :
는 또한 해결 방법을 언급. 그냥 다른 부작용. Windows 설치 프로그램? 분명히 .ibd 파일을 복사하고 그 문제를 일으켰습니다. data/mysql에있는 것들. 당신이 당신의 파일을 복구하려면 다음을 수행해야합니다 :

  1. 는 */데이터/mysql을 삭제 IBD 파일과 .FRM 해당 파일을있는 .ibd 파일 서버를 시작으로
  2. 을 위해 -. -skip - 슬레이브가-시작 내가 종료에, 당신은 또 다른 실패를 얻을 것이다 알게되었다 어떤 데이터

  • 당신은에 액세스 할 수 있어야합니다 및 백업. 이 다른 문제의 원인을 조사해야합니다. 나는 나중에 이것에 대한 업데이트를 게시 할 것이다.

  • 그래도 작동하지 않으면 좀 더 XAMPP와 관련된 Restoring MySQL InnoDB Files on Windows을 시도해보십시오.

    +0

    InnoDB 이외의 형식 (예 : MyISAM)으로 새 테이블을 만들 때 내 "delete-ibdata1-before-restart"루틴 후에 테이블이 계속 남아 있습니다. 지금 당장은 그것이 내가 필요한 전부입니다. – Simon