phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection XAMPP

33

I have wasted now 2 days on this. Finaly I got the solution, remove xampp and install mysql, phpmyadmin, php5, apache2 manually.

sudo apt-get install apache2 mysql-server mysql-client php5 libapache2-mod-php5
apt-cache search php5

Then pick the ones you need and install them like this:

apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
sudo apt-get install phpmyadmin
sudo service apache2 restart

Now you can open http://127.0.0.1/phpmyadmin/

These upper commands will make your xampp server. It will resolve your problem quickly and worked very smoothly.

Thanks to related articles:
1. Ubuntu 14.10 LAMP server tutorial with Apache 2, PHP 5 and MySQL (MariaDB)
2. How do I change the root directory of an apache server?

Share:
33

Related videos on Youtube

user3612643
Author by

user3612643

Updated on September 18, 2022

Comments

  • user3612643
    user3612643 over 1 year

    Can you have second order generics in Dart?

    abstract class Foo<T, ContainerType<T>> {}
    
    class FooList<T> extends Foo<T, List<T>> {}
    
    
    • hmayag
      hmayag over 8 years
      Connect to http://localhost/phpmyadmin (i.e. do not specify port number)
    • oriaj
      oriaj over 8 years
      thanks for you answer, I change the default port to 2145, is necessary specify the port, I edit the post with the solucion that work for me
    • nvoigt
      nvoigt about 3 years
      What happened when you tried?
    • Greenonline
      Greenonline over 2 years
      Post your edit with the solution as an answer, not in question. Then mark it as the accepted answer.
  • user3612643
    user3612643 about 3 years
    Trying to solve this issue: github.com/rrousselGit/river_pod/issues/351
  • Akif
    Akif about 3 years
    :) 12 more to go