I ran into this same problem when installing via homebrew. Make sure you run these commands (which are listed during install but easy to miss):
unset TMPDIR
mysql_install_db
More Related Contents:
- brew install mysql on macOS
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ [duplicate]
- Location of my.cnf file on macOS
- Setting the MySQL root user password on OS X
- MySQL user DB does not have password columns – Installing MySQL on OSX
- How do you uninstall MySQL from Mac OS X?
- Restoring deleted ‘root’ user and password for MySQL
- Ruby on Rails 3 Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ on OSX
- Error: Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT
- MySQL Install: ERROR: Failed to build gem native extension
- libmysqlclient15-dev on macs?
- rails + MySQL on OSX: Library not loaded: libmysqlclient.18.dylib
- Connect to Docker MySQL container from localhost?
- How do you stop MySQL on a Mac OS install?
- Reset MySQL root password using ALTER USER statement after install on Mac
- How to start MySQL server from command line on Mac OS Lion?
- How to auto-load MySQL on startup on OS X Yosemite / El Capitan
- OSX ld: library not found for -lssl
- For homebrew mysql installs, where’s my.cnf?
- MySQL data directory location
- MySQL foreign key constraints, cascade delete
- How to transpose mysql table rows into columns
- Get total number of rows when using LIMIT? [duplicate]
- Table is specified twice, both as a target for ‘UPDATE’ and as a separate source for data in mysql
- MySQL: Many tables or many databases?
- How to create and insert a JSON object using MySQL queries?
- SQL (MySQL) vs NoSQL (CouchDB) [closed]
- How to get the PID of a process by giving the process name in Mac OS X ?
- Select by Month of a field
- MySQL Illegal mix of collations