Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql is not starting in XAMPP UBUNTU

I have one instance PHP and MySQL installed, now i am trying to install XAMPP on my system. I am able run the PHP of XAMPP. but while starting the service, i am getting the below error. I want both the MySQl to be running by stopping the services of other.

Here is my terminal ouput:

$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Please help, thanks

like image 706
Infinity Avatar asked May 30 '13 08:05

Infinity


People also ask

Why MySQL is not running in XAMPP Ubuntu?

Open xampp: Goto Computer(opt)> Open lampp folder(Search "lampp" if u can't see lampp folder)> Open manager-linux. run. In XAMPP Click on "Manage Server" Tab> Click on "Mysql Database"> Click on "Configure"> Change Port from 3306 to 3307> save and start the mysql database.

Why is MySQL not starting in XAMPP?

Fixing the MySQL server not starting in XAMPP is done by reverting back the data files pre-issue. Navigate to your XAMPP MySQL directory ( C:\xampp\mysql ). Create a new folder called FIX_BACKUP . Copy C:\xampp\mysql\backup and C:\xampp\mysql\data into C:\xampp\mysql\FIX_BACKUP .

How do I start Apache and MySQL in XAMPP Ubuntu?

XAMPP is now installed below the /opt/lampp directory. To start XAMPP simply call this command: /opt/lampp/lampp start Starting XAMPP for Linux 1.5. 3a... XAMPP: Starting Apache with SSL (and PHP5)... XAMPP: Starting MySQL... XAMPP: Starting ProFTPD... XAMPP for Linux started.


2 Answers

All you have to do is stop Mysql and apache2 first

sudo service mysql stop
sudo /etc/init.d/apache2 stop

Then Start your

sudo /opt/lampp/lampp start
  1. Switch to the XAMPP installation directory. Type in

    cd /opt/lampp
    

    and press ↵ Enter

  2. Enter the "Open" command. Type in

    sudo ./manager-linux-x64.run
    

    and press ↵ Enter

Enter your password when prompted. Type in the password you usually use to log into your computer, then press ↵ Enter.

like image 166
Krishnashankar lodh Avatar answered Sep 28 '22 06:09

Krishnashankar lodh


If you're running ubuntu why on earth are you using XAMPP?

sudo apt-get install apache2 mysql-server phpmyadmin php5;

cd;mkdir www

pico /etc/apache2/sites-available/default

change document root to the www directory you just made which should be something like /home/yourusername/www/

service apache2 restart

Congratulations you're now running a full blown LAMP stack properly on a linux machine. http://localhost/ and http://localhost/phpmyadmin/

like image 19
Dave Avatar answered Sep 29 '22 06:09

Dave