After downloading mysql tar file archive, unzipped it in a directory (no installation).
Now when i run this from command-line:
/somedir/mysql-5x/bin/mysqld
I see following errors:
[Note] ./mysqld (mysqld 5.6.25) starting as process 5310 ...
[ERROR] Can't find messagefile '/usr/local/mysql/share/errmsg.sys'
[Warning] Can't create test file /usr/local/mysql/data/me-MacBook-[Warning] Can't create test file /usr/local/mysql/data/me-MacBook-Pro.lower-test
./mysqld: Can't change dir to '/usr/local/mysql/data/' (Errcode: 2 - No such file or directory)
[ERROR] Aborting
[Note] Binlog end
This is a mac machine, i have tried via sudo command as well - but that does not help.
Try passing parameter
-b
or--basedir=
for specifying the path to your installation directory. E.g.:/somedir/mysql-5x/bin/mysqld --basedir=/somedir/mysql-5x/