Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Prerequisites
  2. 4 nodes with Ubuntu server 16.04
  3. management-node
  4. data-node1
  5. data-node2
  6. sql-node
  7. Root privileges on the nodes.
  8.  
  9. root@ya-VirtualBox:/usr/local/mysql# mysql -u root -p
  10. Enter password:
  11. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  12. root@ya-VirtualBox:/usr/local/mysql#
  13.  
  14. systemctl stop mysql
  15. /etc/init.d/mysql stop
  16. cd /usr/local/mysql
  17. ./bin/mysqld_safe --user=mysql --defaults-file=/etc/my.cnf &
  18.  
  19. root@ya-VirtualBox:/home/ya# cd /usr/local/mysql
  20. root@ya-VirtualBox:/usr/local/mysql# ./bin/mysqld_safe --user=mysql --defaults-file=/etc/my.cnf &
  21. [2] 13988
  22. root@ya-VirtualBox:/usr/local/mysql# 2016-11-22T23:01:13.234900Z mysqld_safe Logging to syslog.
  23. 2016-11-22T23:01:13.239342Z mysqld_safe Logging to '/var/log/mysqld.log'.
  24. 2016-11-22T23:01:13.267098Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  25. 2016-11-22T23:01:13.580544Z mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
  26. [2]- Done ./bin/mysqld_safe --user=mysql --defaults-file=/etc/my.cnf
  27. root@ya-VirtualBox:/usr/local/mysql#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement