Mysql not starting in XAMPP UBUNTU

I have one instance of PHP and MySQL, now I'm trying to install XAMPP on my system. I can run PHP XAMPP. but when I start the service, I get the following error. I want both MySQls to execute, stopping the services of others.

Here is my terminal:

$ 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

+4
source share
7 answers

If you are using ubuntu, why are you using XAMPP?

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

cd;mkdir www

pico /etc/apache2/sites-available/default

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

service apache2 restart

Congratulations that you are now launching the full-blown LAMP stack correctly on a Linux machine. http://localhost/ and http://localhost/phpmyadmin/

+3
source

It helps me...

The following content from MySQL database cannot run on XAMPP for Mac

 1. Open XAMPP Installation Directory 2. Open "etc" Folder 3. Find "my.cnf" file and open it in any text editor 4. Change Port from 3306 to 3307 (if you have installed skype or other apps) 5. Add "innodb_force_recovery=1" under "myisam_sort_buffer_size=8M" 6. Save "my.cnf" file 7. Open xampp:- 8. Goto Computer(opt)> Open lampp folder(Search "lampp" if u can't see lampp folder)> Open manager-linux.run 9. 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. 

You get the message "Starting MySQL SUCCESS !"

+2
source

I have the same problem.

my way

  • backup folder htdocs
  • backup database folder '/ opt / lampp / var / mysql'
  • check user on / opt / lampp / var / mysql $ ls -la
  • reinstall xampp with uninstall data
  • copy your database folder to / opt / lampp / var / mysql
  • change user access after inserting all files and folders into / opt / lampp / var / mysql

to check the user in the folder

 $ cd /opt/lampp/var/mysql $ ls -la 

to change the user in the folder for all files and folders

 $ sudo chown -R mysql:mysql * 

and 1 file on your ex machine:

 $ sudo chown -R mysql:root emild-desktop.err 

emild-desktop.err - my computer log error

  1. Copy Paste the htdocs folder into the / opt / lampp folder

  2. Restart the lamp service.

    $ sudo / opt / lampp / lamp start

+1
source

This is the easiest fix that worked for me after you tried a billion offers from various forums. First you need to upgrade your kernel to the latest stable version, 3.19 (you really need to do this so that it works without any problems even in the future (after updates)).

  • Go to http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19-vivid/

  • Look for common ones (ignore weaknesses)

    • Download according to your 64-bit (amd64) or 32-bit (i386); there will be 2 files that you will upload. Remember to ignore inactive ones.
    • Next, also get this file: linux-headers-3.19.0-031900_3.19.0-031900.201502091451_all.deb .. from the same place, which makes the total number of files you need should be 3.
    • Install all three files with a simple double click on the icons in the download directory

Install xampp directly from apachefriends website: https://www.apachefriends.org/index.html

Finally, click to start everything on the Server Management tab and see how they all start, the mysql database, the Proftpd web server and Apache. It also fixes the error phpmyadmin 2002 (browser).

0
source

Thanks for answers. I tried to start the mysql service when it is already running. Stop the mysql and apache instance before starting XAMPP mysql and apache

sudo service apache2 stop

sudo service mysql stop

then

sudo / opt / lampp / lamp start

0
source

You can run

sudo stop mysql

in the terminal to stop the mysql service and restart XAMPP.

0
source

First of all, you need to install gksu with the following command:

sudo apt-get install gksu

Then run:

gksu gedit / usr / share / applications / xampp-control-panel.desktop and save the following code in a file.

(You are using a 64-bit system, so nothing needs to be changed, just copy it)


[Desktop]

**** Encoding = UTF-8
Name = XAMPP Control Panel
Comment = Start and stop XAMPP
Exec = gksudo / opt / lampp / manager-linux-x64.run
Icon = / opt / lampp / htdocs / favicon.ico
Categories = Application
Type = Application
Terminal = false ****

Note. For the 32-bit xampp type "manager-linux.run" in the place "manager-linux-x64.run"

Run the following command in terminal:

Sudo apt-get update Now check the application, its icon has been created. You can get it from the search.

0
source

Source: https://habr.com/ru/post/1483533/


All Articles