Page 1 of 1

Mysql #2002 error

PostPosted: 07. July 2014 14:14
by jl2035
My specs: Linux 3.13.0-24-generic x64, Xubuntu, Xampp 1.8.3-4

I screw up mysql somehow. Xampp still works and applications do load, there's just no mysql access.

What I did was to install php5-cli and php5-curl, to run php from command line. I know that was stupid, but I was following some tutorial step by step and I "forgot" that I already have php.. :(

I already uninstalled those two packets but now I still have some other mysql instance and I can't stop it. Running "sudo service mysql stop" outputs "unknown service".

Code: Select all
user@lap:/opt/lampp/var$ sudo /opt/lampp/lampp stop
Stopping XAMPP for Linux 1.8.3-4...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.


Code: Select all
user@lap:/opt/lampp/var$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.3-4...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...ok.


This is the output from "ps -aux | grep mysql":

Code: Select all
user     4257  0.0  0.1  20152   924 pts/4    S+   15:14   0:00 grep --color=auto mysql


From this point I have no idea what to do.
How did I mess this up?

Re: Mysql #2002 error

PostPosted: 07. July 2014 22:13
by Nobbie
jl2035 wrote:How did I mess this up?


Thoroughly.

Re: Mysql #2002 error

PostPosted: 07. July 2014 23:01
by jl2035
Seriously?

Re: Mysql #2002 error

PostPosted: 08. July 2014 13:43
by Nobbie
Yes, that really looks ugly.

If were you, i would do a backup of my home folder, as well to the Xampp folder (/opt/lampp), and finally re-install linux from scratch. Then restore the backuped data and kick off with that fresh install. This sounds more difficult as it is.