Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.8.3
-
macOS Monterey 12.6
M1 pro macbook pro
Description
It's failed to install mariadb via homebrew on my M1 macbook pro. Below is the detail log,
Service start successfully but connect failed
❯ mariadb -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2)
Installation failed log:
==> /opt/homebrew/Cellar/mariadb/10.8.3_1/bin/mysql_install_db --verbose --user=ansonchang --base
Last 15 lines from /Users/ansonchang/Library/Logs/Homebrew/mariadb/post_install.01.mysql_install_db:
shell> /opt/homebrew/Cellar/mariadb/10.8.3_1/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/homebrew/var/mysql that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
at https://mariadb.org/jira
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall mariadb
❯ brew postinstall mariadb
==> Postinstalling mariadb
==> /opt/homebrew/Cellar/mariadb/10.8.3_1/bin/mysql_install_db --verbose --user=ansonchang --basedir=/opt/homebrew/Cellar/mariadb/10.8
Last 15 lines from /Users/ansonchang/Library/Logs/Homebrew/mariadb/post_install.01.mysql_install_db:
shell> /opt/homebrew/Cellar/mariadb/10.8.3_1/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/homebrew/var/mysql that may be helpful.
❯ mysqld --general-log
2022-10-08 17:27:25 0 [Note] mysqld (server 10.8.3-MariaDB-log) starting as process 31421 ...
2022-10-08 17:27:25 0 [Warning] Setting lower_case_table_names=2 because file system for /opt/homebrew/var/mysql/ is case insensitive
2022-10-08 17:27:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-10-08 17:27:25 0 [Note] InnoDB: Number of transaction pools: 1
2022-10-08 17:27:25 0 [Note] InnoDB: Using generic crc32 instructions
2022-10-08 17:27:25 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2022-10-08 17:27:25 0 [Note] InnoDB: Completed initialization of buffer pool
2022-10-08 17:27:25 0 [ERROR] InnoDB: Invalid flags 0x4800 in ./ibdata1
2022-10-08 17:27:25 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
2022-10-08 17:27:25 0 [Note] InnoDB: Starting shutdown...
2022-10-08 17:27:25 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-10-08 17:27:25 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2022-10-08 17:27:25 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-10-08 17:27:25 0 [ERROR] Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist". Some plugins may be not loaded
2022-10-08 17:27:25 0 [ERROR] mysqld: unknown variable 'mysqlx-bind-address=127.0.0.1'
2022-10-08 17:27:25 0 [ERROR] Aborting
Attachments
Issue Links
- blocks
-
MDEV-28684 Failed to install via homebrew
- Closed