Advertisement
lamiastella

mysql

Jun 30th, 2016
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Monas-MacBook-Pro:nlp mona$ export PATH=${PATH}:/usr/local/mysql/bin/
  2. Monas-MacBook-Pro:nlp mona$ mysql
  3. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  4. Monas-MacBook-Pro:nlp mona$ mysql --user=root -p
  5. Enter password:
  6. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  7. Monas-MacBook-Pro:nlp mona$ brew info mysql
  8. mysql: stable 5.7.12 (bottled)
  9. Open source relational database management system
  10. https://dev.mysql.com/doc/refman/5.7/en/
  11. Conflicts with: mariadb, mariadb-connector-c, mysql-cluster, mysql-connector-c, percona-server
  12. Not installed
  13. From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mysql.rb
  14. ==> Dependencies
  15. Build: cmake ✘
  16. Required: openssl ✔
  17. ==> Options
  18. --with-archive-storage-engine
  19. Compile with the ARCHIVE storage engine enabled
  20. --with-blackhole-storage-engine
  21. Compile with the BLACKHOLE storage engine enabled
  22. --with-debug
  23. Build with debug support
  24. --with-embedded
  25. Build the embedded server
  26. --with-local-infile
  27. Build with local infile loading support
  28. --with-test
  29. Build with unit tests
  30. ==> Caveats
  31. We've installed your MySQL database without a root password. To secure it run:
  32. mysql_secure_installation
  33.  
  34. To connect run:
  35. mysql -uroot
  36.  
  37. To have launchd start mysql now and restart at login:
  38. brew services start mysql
  39. Or, if you don't want/need a background service you can just run:
  40. mysql.server start
  41. Monas-MacBook-Pro:nlp mona$ mysql.server start
  42. -bash: mysql.server: command not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement