Guest User

Untitled

a guest
May 21st, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. apt-get remove --purge mysql*
  2.  
  3. apt-get install mysql-server-5.6 mysql-client-5.6
  4.  
  5. service mysql restart
  6. or
  7. service mysql start
  8. or
  9. systemctl restart mysql
  10. or
  11. systemctl start mysql
  12.  
  13. Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
  14.  
  15. systemctl status mysql
  16.  
  17. mysql.service - LSB: Start and stop the mysql database server daemon
  18. Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
  19. Active: failed (Result: exit-code) since Mon 2017-04-10 13:24:00 EDT; 29s ago
  20. Docs: man:systemd-sysv-generator(8)
  21. Process: 15820 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
  22. Main PID: 1323 (code=exited, status=0/SUCCESS)
  23.  
  24. Apr 10 13:23:30 server mysqld[15926]: 2017-04-10 13:23:30 15925 [Note] InnoDB: Compressed tables use zlib 1.2.8
  25. Apr 10 13:23:30 server mysqld[15926]: 2017-04-10 13:23:30 15925 [Note] InnoDB: Using Linux native AIO
  26. Apr 10 13:23:30 server mysqld[15926]: 2017-04-10 13:23:30 15925 [Note] InnoDB: Using CPU crc32 instructions
  27. Apr 10 13:23:30 server mysqld[15926]: 2017-04-10 13:23:30 15925 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  28. Apr 10 13:23:30 server mysqld[15926]: 2017-04-10 13:23:30 15925 [Note] InnoDB: Completed initialization of buffer pool
  29. Apr 10 13:24:00 server mysql[15820]: ...fail!
  30. Apr 10 13:24:00 server systemd[1]: mysql.service: Control process exited, code=exited status=1
  31. Apr 10 13:24:00 server systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
  32. Apr 10 13:24:00 server systemd[1]: mysql.service: Unit entered failed state.
  33. Apr 10 13:24:00 server systemd[1]: mysql.service: Failed with result 'exit-code'.
  34.  
  35. Apr 10 13:23:30 server mysqld: 2017-04-10 13:23:30 15925 [Note] InnoDB: Completed initialization of buffer pool
  36. Apr 10 13:23:30 server mysqld_safe: mysqld from pid file /var/lib/mysql/server.pid ended
  37. Apr 10 13:24:00 server /etc/init.d/mysql[16277]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
  38. Apr 10 13:24:00 server /etc/init.d/mysql[16277]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
  39. Apr 10 13:24:00 server /etc/init.d/mysql[16277]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
  40. Apr 10 13:24:00 server /etc/init.d/mysql[16277]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
  41. Apr 10 13:24:00 server /etc/init.d/mysql[16277]:
  42. Apr 10 13:24:00 server mysql[15820]: ...fail!
  43. Apr 10 13:24:00 server systemd[1]: mysql.service: Control process exited, code=exited status=1
  44. Apr 10 13:24:00 server systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
  45. Apr 10 13:24:00 server systemd[1]: mysql.service: Unit entered failed state.
  46. Apr 10 13:24:00 server systemd[1]: mysql.service: Failed with result 'exit-code'.
  47.  
  48. 170410 13:33:28 mysqld_safe Logging to syslog.
  49. 170410 13:33:28 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  50. 170410 13:33:28 mysqld_safe mysqld from pid file /var/lib/mysql/server.pid ended
  51.  
  52. #
  53. # The MySQL database server configuration file.
  54. #
  55. # You can copy this to one of:
  56. # - "/etc/mysql/my.cnf" to set global options,
  57. # - "~/.my.cnf" to set user-specific options.
  58. #
  59. # One can use all long options that the program supports.
  60. # Run program with --help to get a list of available options and with
  61. # --print-defaults to see which it would actually understand and use.
  62. #
  63. # For explanations see
  64. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  65.  
  66. # This will be passed to all mysql clients
  67. # It has been reported that passwords should be enclosed with ticks/quotes
  68. # escpecially if they contain "#" chars...
  69. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
  70.  
  71. # Here is entries for some specific programs
  72. # The following values assume you have at least 32M ram
  73.  
  74. !includedir /etc/mysql/conf.d/
  75.  
  76. sudo service mysql stop
  77.  
  78. sudo apt-get remove mysql
  79. sudo apt-get purge mysql
Add Comment
Please, Sign In to add comment