Need to import database with phpmyadmin
So could anyone help me access phpMyAdmin?
6 Replies
mysql -p db_name < import_dump.sql
sudo apt-get update && sudo apt-cache search phpMyAdmin
If that turns up with phpMyAdmin, do:
sudo apt-get install phpMyAdmin
If the phpMyAdmin package is named different in the apt-cache command, use that in the apt-get install command. It will download from Ubuntu's software repositories and install it. It won't install directly to your web site, so you'll have to find where it places phpMyAdmin and place it in your website, e.g. /srv/www/mysite.com/html/phpmyadmin (assuming that your web site is stored in /srv/www and your web site's files are stored in html, like on most systems, adjust that for your Linode's web site directory).
Another option is to go to phpMyAdmin's web site
sudo apt-get install phpmyadmin
will work.
Now I need to know is what I need to do to upload images, or modify theme files through wordpress? I have tried chmod for public_html, and wp-content, none seems to work.
There are several ways to upload files. One is to setup a FTP server on your Linode, and use a regular FTP client like Filezilla. Another possibility is if WordPress has a section to upload files.
Another method is to use scp, which is copy over ssh. If you use Windows at home, you can use WinSCP, which is a GUI tool for using scp in Windows. For Linux, there are different GUI tools to do this; for KDE, Konqueror should work if you go to the location bar and type "sftp://
If you want to use a Linux or Mac command, use the following command (it's quite similar to the regular cp command):
scp /path/to/local/file user@yoursite.com:~
Replace /path/to/local/file with the file you want to copy. Replace user with your user name on your Linode. Replace yoursite.com with the domain name OR the IP address to your Linode. The colon ":" is required, along with where you want to copy the file to; the ~ is a shortcut in Linux to your user's home directory. If you have all your images in a single directory, you can add "-r" to the command:
scp -r /path/to/directory user@yoursite.com:~