iroddis / asdf-mysql

A MySQL Plugin for asdf
GNU General Public License v2.0
19 stars 8 forks source link

mysql for arm64 will be installed on x86_64 Darwin #17

Closed ginokent closed 2 years ago

ginokent commented 2 years ago

Hello.

Thank you for the useful asdf plugin. It always helps me.

Well, here is an example of running asdf install mysql on my machine:

$ uname -s
Darwin
$ arch
i386
$ uname -m
x86_64
$ asdf install mysql
-----------------------------------------------------------------------------
Welcome to the University of Kent's UK Mirror Service.

More information can be found at our web site: https://www.mirrorservice.org/
Please send comments or questions to help@mirrorservice.org.
-----------------------------------------------------------------------------

receiving file list ... done
mysql-8.0.26-macos11-arm64.tar.gz

sent 73 bytes  received 172010201 bytes  980115.52 bytes/sec
total size is 171938353  speedup is 1.00
ls: *.xz: No such file or directory
Successfully installed MySQL 8.0.26
To initialize a new database:
  asdf global 8.0.26
  export DATADIR=/path/to/data
  mysqld --initialize-insecure --datadir=
  mysql_ssl_rsa_setup --datadir=
To run the server:
  mysqld_safe --datadir=

This shows that the mysql command for arm64 is installed on Darwin x86_64.

arch command returns i386 on x86_64 Darwin, but uname -m returns x86_64.

This problem has been occurring since PR https://github.com/iroddis/asdf-mysql/pull/16.