Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Monas-MacBook-Pro:nlp mona$ export PATH=${PATH}:/usr/local/mysql/bin/
- Monas-MacBook-Pro:nlp mona$ mysql
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- Monas-MacBook-Pro:nlp mona$ mysql --user=root -p
- Enter password:
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- Monas-MacBook-Pro:nlp mona$ brew info mysql
- mysql: stable 5.7.12 (bottled)
- Open source relational database management system
- https://dev.mysql.com/doc/refman/5.7/en/
- Conflicts with: mariadb, mariadb-connector-c, mysql-cluster, mysql-connector-c, percona-server
- Not installed
- From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mysql.rb
- ==> Dependencies
- Build: cmake ✘
- Required: openssl ✔
- ==> Options
- --with-archive-storage-engine
- Compile with the ARCHIVE storage engine enabled
- --with-blackhole-storage-engine
- Compile with the BLACKHOLE storage engine enabled
- --with-debug
- Build with debug support
- --with-embedded
- Build the embedded server
- --with-local-infile
- Build with local infile loading support
- --with-test
- Build with unit tests
- ==> Caveats
- We've installed your MySQL database without a root password. To secure it run:
- mysql_secure_installation
- To connect run:
- mysql -uroot
- To have launchd start mysql now and restart at login:
- brew services start mysql
- Or, if you don't want/need a background service you can just run:
- mysql.server start
- Monas-MacBook-Pro:nlp mona$ mysql.server start
- -bash: mysql.server: command not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement