Results 1 to 4 of 4

Thread: How to fix messed up mysql

  1. #1
    Join Date
    2015-Oct
    Posts
    2

    Unhappy How to fix messed up mysql

    hello I am Using kali 18.2.I probably messed up my mysql while trying to install xampp and tweaked some settings. right now I am not able to use mysql at all. when ever I try to use .. it shows my this error
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory") '

    ... cant access mysql -u root ....

    mysql -u root -p does letme enter password but next the same error.
    # service mysql status shows me this output
    ● mysql.service - LSB: Start and stop the mysql database server daemon
    Loaded: loaded (/etc/init.d/mysql; generated)
    Active: active (exited) since Tue 2018-05-08 16:13:27 EDT; 1min 34s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 18544 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCES

    May 08 16:13:27 shakali systemd[1]: Starting LSB: Start and stop the mysql datab
    May 08 16:13:27 shakali systemd[1]: Started LSB: Start and stop the mysql databa


    grep mysql /var/log/daemon.log
    May 8 15:56:29 shakali systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
    May 8 15:56:29 shakali systemd[1]: Started LSB: Start and stop the mysql database server daemon.
    May 8 16:05:20 shakali systemd[1]: Stopping LSB: Start and stop the mysql database server daemon...
    May 8 16:05:20 shakali systemd[1]: Stopped LSB: Start and stop the mysql database server daemon.
    May 8 16:13:27 shakali systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
    May 8 16:13:27 shakali systemd[1]: Started LSB: Start and stop the mysql database server daemon.

    even when i tried to purge mysql while trying to delete phpmyadmin database same error occured. How can I fix this?

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    744
    I'd try using apt remove mysql, then run apt install mysql.

  3. #3
    Join Date
    2015-Oct
    Posts
    2
    Thank you. It removed mysql . Forgot to reply in the thread. Solving the issue went to sleep 😛

  4. #4
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    744
    You're welcome...glad it worked

Similar Threads

  1. Masscan UI // Webpage ~ php5 php5-mysql mysql-server
    By Ceruleancerise in forum General Archive
    Replies: 2
    Last Post: 2017-07-02, 13:16
  2. apt-get autoremove messed up everything
    By w32mydoom in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-03-31, 14:36

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •