phpMyAdmin Tutorial
phpMyAdmin Tutorial
Credits
Last Updated : 30/12/01
Contact Details
I have tried to make it easier for you to understand by bolding any key words or
items which you need to look for, italicing anything which should also be noticed but
is not essential and also have made screenshots which are really just tables set to
look like the real thing.
Please Read :
This is a Tutorial/FAQ for setting up phpMyAdmin available for download from here.
Updates
Legalities / Disclaimer :
30th I've finished setting up the new NukeTutorials.com and started
Click on LICENSE up above and you will be taken to the license agreement. If you December writing this guide.
cannot see the menu because you found this site through a search engine, click
here to go to the main menu and then try again..
PLEASE SIGN!!
If there is no bar at the top; please email me immediately as this site is illegally
hosting my guide and I am receiving no money for it. If you see it on my site then I Please - If you found this guide helpful or not helpful, or have any comments or
get money because there is a popup add - anyway, the money is used to pay for suggestions, please sign my guest book as it would mean a lot to me (I've never
domain fees and hosting fees. had a guest book with more than 10 entries) - also note it might be a bit slow but
please sign it
These guides are free for you to use and the most updated one and the now official
host is located on Nuke-Hosting. The URL for this site is Guest Book
www.nuketutorials.com. For the latest guide, be sure to go to this page. Sign Guestbook View Guestbook
1. Downloading
CONTENTS
Obviously you will need to download phpMyAdmin from
How this Guide works http://phpmyadmin.sourceforge.net/ if you plan on installing it. It is also an
incredibly smart idea to have a check whether or not you already have it. F2S users
Updates already have it and it can be found at www.f2s.com/db and most other hosts which
support MySQL have it already setup. Once your sure you haven't got it; continue
PLEASE SIGN!! on!
1. Downloading Now, once you have downloaded phpMyAdmin you will need something to unpack
it with. It comes in many different flavors. Here is a screenshot from the site (ps.
you have to click on download phpMyAdmin.. its near the bottom.. or here)
2. Setting Up!
5. The Basics
Release Announcement for 2.2.0
Importing SQL files
Dumping (viewing) a table
Deleting (drop/empty) a table
News: phpMyAdmin 2.2.2 has been released!
PHPNuke details. For Windows users I recommend you use Wordpad as for some
unknown reason; my Notepad failed to open it neatly and made it look like alot of
- Download phpMyAdmin-2.2.2-php.tar.bz2 words jumbled up...
- Download phpMyAdmin-2.2.2-php.tar.gz
(.php files) Below is an extract from the configuration file with the important parts BOLD. This
- Download phpMyAdmin-2.2.2-php.zip is near the top and this is the main configuration area. You can change most of the
things here if it is not working. There are also options for you to enter in a
- Download phpMyAdmin-2.2.2-php3.tar.bz2 predefined user/password/server and also the option to restrict the use to only one
- Download phpMyAdmin-2.2.2-php3.tar.gz database. Anyhow, do not worry about these and just concentrate on the main
(.php3 section.
- Download phpMyAdmin-2.2.2-php3.zip
/**
This is what it looked like when I wrote this guide but I'm pretty sure they will stick *
to a similar format in the future. Notice how there are two different sections - .php
files and .php3 - well, they are for different kinds of servers. You will most likely * CREATE TABLE bookmark (
be using the standard php version as php3 is only used in special cases and
chances are, your not one of them. Which version to download? If you are on a * id int(11) DEFAULT '0' NOT NULL auto_increment,
Unix-based (this includes Linux) machine then you should probably go for the native
tar.gz but if not then you should go for the standard zip file. If you are using
* dbase varchar(255) NOT NULL,
Windows, you should download the zip as most of you have WinZip or some
Zipmagic-like program anyway. Also note that you can download the documentation
somewhere but you'll never read it. Anyway; its not like your going to use it for * user varchar(255) NOT NULL,
much (are you?)... In case you didn't get any hints before; you will need to get
some sort of unpacking utility and if you are using Windows then you should try * label varchar(255) NOT NULL,
Winzip avaliable from http://www.winzip.com/ and http://www.download.com/ .
The double bonus is that it also works with tar files which are commonly used for * query text NOT NULL,
Unix things and also for PHPNuke. For those Unix-n00bs, type this tar xzvf
phpMyAdmin_2.2.2.tar.gz (obviously if you are using a different version you * PRIMARY KEY (id)
change the '2.2.2' accordingly) - also n00b is "newbie" (say noooo-beee)...
* );
The next thing you will need is something to upload it with - I prefer to use a
program called SmartFTP from http://www.smartftp.com/ as it is easy to use, *
much more user-friendly than WSFTP_LE is, tends to be more stable and is also
fully functional and totally free.
*/
The last step is to (in case you never thought of it before) make sure your server
can support PHP. If it doesn't support it then there really is little point. If you are
using Linux then now might be a good time to download the php-mysql rpm
/**
update;
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
2. Setting Up!
*/
If you haven't unzipped/untared your phpMyAdmin files, you better do so now
before we continue. $cfgPmaAbsoluteUri = 'http://seremify.nukeelite.com/phpmyadmin/';
To start you have to open up the config.inc.php file which contains all the
configuration details in a similar manner to the way config.php holds all of the
/**
// You can disable a server config entry by setting host to ''. $cfgServers[1]['adv_auth'] = FALSE; // Use advanced authentication?
That is the advanced authentication setting. Change the word false into true to
require you to enter in your login details (and server details) every time you want
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname
to check your database. This is obviously much more safer than if you leave it as
open. Also note that if you use Advanced Authentication, do not enter your
$cfgServers[1]['port'] = ''; // MySQL port - leave blank for default port password into the password section of the configuration file (below the username).
Remove it. Leave the username there though. When you've set it properly it should
$cfgServers[1]['socket'] = ''; // Path to the socket - leave blank for look like this;
default socket $cfgServers[1]['adv_auth'] = TRUE; // Use advanced authentication?
$cfgServers[1]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or Make sure you set all the details in the ones marked $cfgServers[1] as the other
'socket') ones refer to other 'bookmark's. Don't worry about them.
$cfgServers[1]['stduser'] = ''; // MySQL standard user settings (this user must Like I said before, the rest of the stuff isn't that important but can be changed to
have read-only suit yourself - its easier just to leave it as it leaves less of a chance for it to stuff up.
$cfgServers[1]['user'] = 'seremify'; // MySQL user You've extracted all the files and now its time to upload. This bit seems easy
enough and all you need to do is make sure you've setup SmartFTP to upload php
$cfgServers[1]['password'] = 'password'; // MySQL password (only files in ASCII mode and not binary mode.
needed with basic auth)
To set SmartFTP to upload PHP files in ASCII, follow these steps;
$cfgServers[1]['only_db'] = ''; // If set to a db-name, only this db is displayed at
left frame 1. Open SmartFTP (Start -> Programs -> SmartFTP -> SmartFTP)
2. Click Tools -> Settings... to open up the configuration of SmartFTP
3. In the top left of the popup box (or in other versions, it may be slightly
different) there is a tab called Extensions - click it.
4. There are two parts of this dialog box; the Ascii Filter and the Exclusion
$cfgPmaAbsoluteUri = 'http://seremify.nukeelite.com/phpmyadmin/'; Filter. Binary is used for images only. To set PHP files for ASCII, click the text
Set the URL of where-ever you are putting phpMyAdmin here. Make sure to include box above the ASCII list and below the words Ascii Filter. Enter in
the full path with the / at the end otherwise it won't work. This is probably the (exactly) .*\.php$ and click on Add.
most important part so make sure its right! Also note - put your site address
between the parenthesizes (the ' and the other ') otherwise again it will not work.
5. Click on OK and then its done. Now when you upload in PHP it will upload in
Leave the ; there as it is there for a reason. In case you also didn't notice this; I am ASCII mode.
installing it to my test site (seremify.nukeelite.com) under the subdirectory
phpmyadmin. Now, insert your server details (not the MySQL details - the actual server host
details) into the boxes (obviously the server address goes where the address box is
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname - don't try to use 'localhost' if its a remote server, the username, the port, obviously
$cfgServers[1]['port'] = ''; // MySQL port - leave blank for default port go where the boxes are..) Once you've put everything in click on CONNECT the top
$cfgServers[1]['socket'] = ''; // Path to the socket - leave blank for default left button on the toolbar. It should be connecting. If you cannot see a list of the
socket stuff on your hard drive - scroll your mouse over the toolbar until you find an option
Thos two lines should be left alone but if it does not work; try setting the localhost which kind of resembles a computer icon similar to the My Computer icon. Hover
to your actual server address and then it might work better. Also, the default port over it and it will say Local Browser. Click it and then *pop* comes a local
setting is 3306 which usually works but if yours is different and you know it (or browser.
you've had problems) then try changing it and remember to put it between the '
and the other '. Find your phpMyAdmin files on your hard drive and when you've found them, select
them all using shift or by using the 'click and drag' method. Once selected, just
$cfgServers[1]['user'] = 'seremify'; // MySQL user drag all the files over to the remote window (the one which isn't the window you
$cfgServers[1]['password'] = 'password'; // MySQL password (only dragged them from in the first place) and then watch it upload. Luckily this program
doesn't need to be chmod'd (a very long and tiring process which should have an IMPORTING SQL FILES
easier way of doing it)... One of the tasks you may need to do is to import SQL files. To do so, click on your
database name on the left and you will see this screen in the right frame; (yes
again I ripped it off my own guide for the F2S installation..)
If you are using BASIC AUTHENTICATION where you don't need to enter your
password to login and its all automatic; then you will be faced with a screen like this
(yes I ripped it from my Nuke on F2S guide..)
Show this query here again
Home
phpnuke (0)
Welcome to phpMyAdmin Or Location of the textfile :
2.2.2 Sfoglia...
Go
MySQL 3.23.37 running on localhost as
seremify@localhost
z Query by Example
MySQL phpMyAdmin
Create new table on database seremify :
Log out Language: English (en) Go
Name :
(*) phpMyAdmin documentation Go
Fields :
Official phpMyAdmin Homepage
Sourceforge phpMyAdmin Download
Page
[ChangeLog] [CVS] [Lists] Your screen may be slightly different but the elements will remain the same. Now,
what you should do is see where it says Or Location of the textfile :, there should
be a Browse button there and you should click it. Now, you have to find the file
that you want to import. Click on GO and then everything should be setup.
Note : You do not need to save as it does that for you (lucky..) but in a way thats
bad because you can't undelete stuff... (this is a warning)
Name :
nuke_stories_cat Browse Select Insert Properties Drop Empty 0 MyISA Fields : Go
Sfoglia...
Go Drop is to delete it fully whilst Empty is to delete all the data but leave all the
columns behind.
z Query by Example
z View dump (schema) of database
6. Recommended Sites :
Create new table on database auz : Of course I've got to thank the guys that made phpMyAdmin possible.. I'll put you