반응형
오류 2002 (HY000) : '/var/run/mysqld/mysqld.sock'소켓을 통해 로컬 MySQL 서버에 연결할 수 없습니다. (2)
인터넷에서 찾은 모든 것을 시도했지만 Ubuntu 11.04에서 문제를 해결할 수 없습니다.
나는 다음을 시도했다 :
mysqld -P 3305
로 실행하면 오류가 발생합니다.
110630 0:24:24 [Warning] Can't create test file /var/lib/mysql/nazar-studio.lower-test
110630 0:24:24 [Warning] Can't create test file /var/lib/mysql/nazar-studio.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13)
110630 0:24:24 [ERROR] Aborting
110630 0:24:24 [Note] mysqld: Shutdown complete
다음은 mysql 오류 로그입니다.
10630 0:07:22 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:22 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:22 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
110630 0:07:22 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
110630 0:07:22 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
110630 0:07:22 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
110630 0:07:23 InnoDB: Started; log sequence number 0 0
110630 0:07:23 InnoDB: Starting shutdown...
110630 0:07:28 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:28 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:28 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:28 InnoDB: Completed initialization of buffer pool
110630 0:07:28 InnoDB: Started; log sequence number 0 44233
ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE user ADD column Show_view_priv enum('N','Y') CHARACTER SET utf8 NOT ' at line 1
110630 0:07:28 [ERROR] Aborting
110630 0:07:28 InnoDB: Starting shutdown...
110630 0:07:34 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:34 [Note] /usr/sbin/mysqld: Shutdown complete
110630 0:07:34 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:34 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:34 InnoDB: Completed initialization of buffer pool
110630 0:07:34 InnoDB: Started; log sequence number 0 44233
110630 0:07:34 InnoDB: Starting shutdown...
110630 0:07:39 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:39 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:39 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:39 InnoDB: Completed initialization of buffer pool
110630 0:07:39 InnoDB: Started; log sequence number 0 44233
ERROR: 1050 Table 'plugin' already exists
110630 0:07:39 [ERROR] Aborting
110630 0:07:39 InnoDB: Starting shutdown...
110630 0:07:44 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:44 [Note] /usr/sbin/mysqld: Shutdown complete
110630 0:18:30 [Note] Plugin 'FEDERATED' is disabled.
110630 0:18:30 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:18:30 InnoDB: Completed initialization of buffer pool
110630 0:18:30 InnoDB: Started; log sequence number 0 44233
mysqld: Too many arguments (first extra is 'start').
Use --verbose --help to get a list of available options
110630 0:18:30 [ERROR] Aborting
110630 0:18:30 InnoDB: Starting shutdown...
110630 0:18:35 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:18:35 [Note] mysqld: Shutdown complete
이 오류를 어떻게 해결할 수 있습니까?
해결 방법
실험을했고 마지막으로이 명령으로 해결했습니다.
sudo chown mysql:root /var/lib/mysql/ -R
sudo chmod g+rw /var/lib/mysql/ -R
sudo /usr/sbin/mysqld --skip-grant &
실행 중 ...... Hurraaahhhhhhhhhh !!!!!!!!!!!!
참조 페이지 https://stackoverflow.com/questions/6525917
반응형
'MySql' 카테고리의 다른 글
MySQL JSON을 통해 Android에서 서버로 데이터 보내기 (0) | 2020.10.05 |
---|---|
MySQL MYSQL : 쉼표 뒤 10 자리 정확도의 DECIMAL (0) | 2020.10.05 |
MySQL mysql이 로그인 한 사용자를 잊어 버림 : "@ '%'사용자에게 명령이 거부 됨 (0) | 2020.10.05 |
MySQL mysql 쇼 테이블로; 대소 문자를 무시하면서 테이블 이름으로 정렬 할 수 있습니까? (0) | 2020.10.05 |
MySQL $ wpdb-실패시 무엇을 반환합니까? (0) | 2020.10.05 |
댓글