sudo apt-get install mysql-server mysql-client
modify password of root :
登录
mysql -u debian-sys-maint -p
密码在/etc/mysql/debian.cnf里;
执行如下命令;
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> ALTER USER 'root'@'localhost' IDENTIFIED by 'root';
mysql> alter user 'root'@'localhost' identified with mysql_native_password by 'root';
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
sudo apt-get install php-mysql apache2 php libapache2-mod-php php-mysql php-curl php-gd php-intl php-pear php-imagick php-imap php-memcache php-pspell php-snmp php-tidy php-xmlrpc php-xsl libapache2-mod-php php-mysql php-curl php-gd php php-mysql phpmyadmin