One-click deployment of Wordpress on Ububtu pagoda error due to database error

==== Situation 1 : MySQL in the pagoda cannot start normally ====

Performance:

In the Ubuntu pagoda on the virtual machine, Wordpress cannot be deployed with one click, the database cannot be added, and MySQL and pagoda cannot be uninstalled/reinstalled.

analyze:

I once failed to install MySQL in the pagoda due to insufficient memory, so I installed MySQL separately on the console, and later deleted MySQL but port 3306 was still occupied.

solve:

1. Close port 3306

close mysql service

service mysql stop

still can't use this again

systemctl stop mysql

No more look for port 3306

netstat -anp |grep 3306

Close through the found port id assuming the id is 666

kill -9 PID 666

kill process

2. Restart the MySQL in the pagoda successfully

==== Situation 2: One-click deployment of WordPress fails due to failure to create a new database ====

  • Performance:

Now I need to reset WorsPress, but I have not found a way to completely reset it, so I am going to delete the website in the upper pagoda of WordPress - the website. After deleting, re-deploy WordPress in the Pagoda-software store with one click, but the prompt fails: database creation failed, please check whether there is a database with the same name! As follows:

  • analyze:

There may be library files of coin1news that have not been deleted cleanly in the database.

  • solve:

In pagoda-database-phpMyAdmin, open access through the panel, as follows:

Username: root

Password: View in pagoda-database-root password

After entering, I found that this data has not been deleted.

Delete: Click on the database, and then click on the right to operate, as follows:

Click to delete the database (DROP), prompting an error: #3679 - Schema directory './coin1news_com/' does not exist, as follows:

So go back to the pagoda-file-root directory/www/server/data and manually create a coin1news_com folder, under the sun:

Go back to the browser phpMyAdmin page again to delete it, and it is successful, as follows:

Guess you like

Origin blog.csdn.net/cgxcgxcgxcgx/article/details/124210095