Instalar LAMP

Ubuntu 16.04

sudo apt-get install apache2
sudo apt-get install mysql-client mysql-server
sudo apt-get install php php-mysql libapache2-mod-php

sudo gedit /var/www/html/test.php
  < ? php phpinfo(); ? >

http://localhost/test.php

$ sudo mysql -u root -p #newer versions of mysql-server don't permit using root username to connect when executing from non-root (non-sudo) login. So, you have to create a different username in mysql 

mysql> create user 'usuario'@'localhost' identified by 'password'; #Create a new mysql user "nuevo" and grant this user privileges on all databases. I chose to have a blank password.
mysql> GRANT ALL PRIVILEGES ON * . * TO 'usuario'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit

sudo apt-get install openjdk-8-jdk #netbeans 8.2 requiere jdk 8
https://netbeans.org/downloads/ //descargar netbeans
cd /home/user/Descargas
chmod +x netbeans-8.2-php-linux-x64
./netbeans-8.2-php-linux-x64

http://www.mysql.com/products/workbench/ #Descargar workbench e ejecutar instalación del .deb
sudo dpkg -i mysql-workbench-community-6.3.9-1ubuntu16.10-amd64.deb 
sudo apt-get install -f

sudo apt-get install git
git clone https://ivancas@nubedreams.git.cloudforge.com/tablasii.git

sudo apt-get install meld

sudo apt-get install phpmyadmin #opcional, instalar phpmyadmin
sudo apt-get install php-pgsql #opcional: Librerias de acceso a postgres

Ve 

 

Fuente

https://discourse.numenta.org/t/when-swarming-got-error-1698-28000-access-denied-for-user-root-localhost-mysql/893

 

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *