금일 리눅스 -> macOS 서버 이전을 하며 진행한 이력을 기록해본다.
우분투 서버의 mariadb 데이터베이스를 풀 백업 받아, macOS에 복원시킨다.
macOS의 패키지매니저는 brew를 사용했으며, 앞으로 brew를 통해 모든 서비스를 관리한다.
- install mariadb
HumingCubis-iMac:wordpress $ brew install mariadb
- restore db
- 사용중이던 test, wordpress DB가 정상 복원된다.
HumingCubis-iMac:wordpress $ mysql -uroot -p < file.sql
HumingCubis-iMac:nginx $ mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 116
Server version: 10.8.3-MariaDB Homebrew
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| test |
| wordpress |
+--------------------+
6 rows in set (0.018 sec)
MariaDB [(none)]>
+——————–+
| ZZINNI ZZINNI |
+——————–+
| information_schema |
| make hompage |
| performance_8282 |
| sys |
| test |
| wordpress |
+——————–+