WordPress Manual Upgrade for Experts: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
The next step isn't necessary, but if you want to make a copy of the website files and test those copied files for functionality and peace of mind, use the below command;<syntaxhighlight lang="text"> | The next step isn't necessary, but if you want to make a copy of the website files and test those copied files for functionality and peace of mind, use the below command;<syntaxhighlight lang="text"> | ||
cp - | cp -ax WebSiteDirectory.WorkingVersion.X.Y.Z WebSiteDirectory | ||
The WebSiteDirectory will need to be erased before copying the new updated WordPress files. | The WebSiteDirectory will need to be erased before copying the new updated WordPress files. | ||
| Line 26: | Line 26: | ||
===Database=== | ===Database=== | ||
For the database, use the mySQL (MariaDB, etc.) command line or phpMyAdmin. phpMyAdmin makes it much easier. Select the database in the left pane, Export Tab, "Simple" Radio Button, Go Button, save it to a file, done. | For the database, use the mySQL (MariaDB, etc.) command line or phpMyAdmin. phpMyAdmin makes it much easier. Select the database in the left pane, Export Tab, "Simple" Radio Button, Go Button, save it to a file, done. | ||
For the command line; | |||
* Export: mysqldump -u WhatEverUserName -p <mark>WhatEverDataBaseName</mark> > WhatEverFileName<mark>.sql</mark> | |||
* Create | |||
** CREATE DATABASE WhatEverDatabaseName; | |||
** GRANT ALL ON WhatEverDatabaseName.* TO 'WhatEverUserName'@'localhost' IDENTIFIED BY 'WhatEverPassword'; | |||
** FLUSH PRIVILEGES; | |||
* Import: mysql -u WhatEverUserName-p WhatEverDatabaseName< <mark>WhatEverFileName.sql</mark> | |||
<br /> | |||
===Other Thoughts=== | ===Other Thoughts=== | ||