home archives github knives links
tags php apache mysql wordpress
categories
only title title and content
wordpress笔记

mysql

mysqladmin --version

sudo mysqladmin -u root password "111111"
mysql -h localhost -u root -p
ps -ef | grep mysqld

cd /usr/bin
sudo ./mysqld_safe
sudo mysql

mysql> SHOW DATABASES;
mysql> exit;
mysql> drop database wordpress;

phpmyadmin

sudo apt install phpmyadmin

位置:/usr/share/phpmyadmin

wordpress安装

define('DB_NAME', 'wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', '');

好像最开始是不能有密码的

报错解决

sudo chmod a+w -R /opt/lampp/htdocs

htdocs/wp-config.php添加

define('FS_METHOD', "direct");

但还是一堆Warning

其他配置

插件