Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreibabor/1f628612ad0b16292a98d4d1ab2538d9 to your computer and use it in GitHub Desktop.
Save andreibabor/1f628612ad0b16292a98d4d1ab2538d9 to your computer and use it in GitHub Desktop.
Wordpress Update Database from shell comand promp
Open Putty
Insert Shared IP Address take it from Cpanel Ex:67.225.255.208
login with FTP credentials
Insert db to the public_html folder
add this command
mysql -u otechcheckmatepr_staging -h localhost -p otechcheckmatepr_staging < public_html/staging/otechcheckmatepr_staging.sql
You just have to replace SQL_FILE_PATH with the file name along with the relative or absolute path
or
Try replacing localhost with 127.0.0.1
the password to login is this one /** MySQL database password */ take it from wp-config and not FTP password
@andreibabor
Copy link
Author

public_html/staging/otechcheckmatepr_staging.sql reprezinta calea unde este fisierul este salvat pe server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment