MySQL Quick Start Guide

Similar documents
MySQL Quick Start Guide

MySQL quick start guide

Lets Get Started In this tutorial, I will be migrating a Drupal CMS using FTP. The steps should be relatively similar for any other website.

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

MSSQL quick start guide

IIS, FTP Server and Windows

Backup and Restore MySQL Databases

Livezilla How to Install on Shared Hosting By: Jon Manning

Using Internet or Windows Explorer to Upload Your Site

Customer Control Panel Manual

ProjectPier v Getting Started Guide

Transferring Your Hosting Account

SETTING UP A LAMP SERVER REMOTELY

What you will need before beginning this guide

Customer Tips. Xerox Network Scanning HTTP/HTTPS Configuration using Microsoft IIS. for the user. Purpose. Background

OrangeHRM Web Installation Guide for Windows

Computer Science and Engineering MacOS Cisco VPN Client Installation and Setup Guide

What is WS_FTP Server Web Transfer Module?...1 System Requirements...2. What is WS_FTP Server Web Transfer Module?

Site Store Pro. INSTALLATION GUIDE WPCartPro Wordpress Plugin Version

1. Product Information

Sentral servers provide a wide range of services to school networks.

VP-ASP Shopping Cart Quick Start (Free Version) Guide Version 6.50 March

equate Installation QUICK START GUIDE

NAS 109 Using NAS with Linux

MOODLE Installation on Windows Platform

Content Management System

Web24 Web Hosting Guide

Installation Instructions

How To - Implement Single Sign On Authentication with Active Directory

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

How to FTP (How to upload files on a web-server)

How To Backup A Database On A Microsoft Powerpoint 3.5 (Mysqldump) On A Pcode (Mysql) On Your Pcode On A Macbook Or Macbook (Powerpoint) On

phpservermon Documentation

Installing Drupal on Your Local Computer

SSH and Basic Commands

TIMETABLE ADMINISTRATOR S MANUAL

Tech Tips Helpful Tips for Pelco Products

Installing buzztouch Self Hosted

Online Backup Client User Manual Linux

Omnistar Recruiter Install User Guide (Codelock)

RecoveryVault Express Client User Manual

GENERAL FILE TRANSFER GUIDELINES

AJ Matrix V5. Installation Manual

Magento Theme EM0006 for Computer store

Online Backup Linux Client User Manual

How to set up Outlook Anywhere on your home system

Online Backup Client User Manual

NOTE: Please refer to the LinkNavigator CD-ROM s IP Setup Utility if you do not know the LinkStation s IP Address or Host Name.

XCloner Official User Manual

MICROSOFT OFFICE 365 EXCHANGE ONLINE CLOUD

Perceptive Intelligent Capture Solution Configration Manager

2. Installation Instructions - Windows (Download)

How to install phpbb forum on NTU student club web server

NTT Web Hosting Service [User Manual]

How To Set Up A Backupassist For An Raspberry Netbook With A Data Host On A Nsync Server On A Usb 2 (Qnap) On A Netbook (Qnet) On An Usb 2 On A Cdnap (

How to Join QNAP NAS to Microsoft Active Directory (AD)

Configuring Web services

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

DSI File Server Client Documentation

Specops Command. Installation Guide

How to install and use the File Sharing Outlook Plugin

NovaBACKUP xsp Version 15.0 Upgrade Guide

Lesson 7 - Website Administration

Using a Remote SQL Server Best Practices

Welcome to Collage (Draft v0.1)

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

CRSP MOVEit Cloud Getting Started Guide

File Space / Web Space / Database Space - Self-Service Allocation August 2009

Installing The SysAidTM Server Locally

Implementing Microsoft SQL Server 2008 Exercise Guide. Database by Design

Insight Video Net. LLC. CMS 2.0. Quick Installation Guide

RaidenFTPD Log Analyser Web Edition

Information & Communication Technologies FTP and GroupWise Archives Wilfrid Laurier University

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

Active Directory Integration

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Upgrade your Software

CS5331 Web Security - Assignment 0

Installing LearningBay Enterprise Part 2

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

Online Document Delivery Service (ODDS):

Access Instructions for United Stationers ECDB (ecommerce Database) 2.0

Configure Backup Server for Cisco Unified Communications Manager

Reference and Troubleshooting: FTP, IIS, and Firewall Information

Configure Single Sign on Between Domino and WPS

FTP Use. Internal NPS FTP site instructions using Internet Explorer:

PRiSM Security. Configuration and considerations

Connecting to the Hospira FTP Server

Installing CPV Lab Version 2.17

CEFNS Web Hosting a Guide for CS212

Upgrading MySQL from 32-bit to 64-bit

Build it with Drupal 8

SQL EXPRESS INSTALLATION...

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

Accessing the FTP Server - User Manual

MassTransit 6.0 Enterprise Web Configuration for Macintosh OS 10.5 Server

Transcription:

Quick Start Guide

MySQL Quick Start Guide SQL databases provide many benefits to the web designer, allowing you to dynamically update your web pages, collect and maintain customer data and allowing customers to contribute to your website with content of their own. In addition many software applications, such as blogs, forums and content management systems require a database to store their information. SQL stands for Structured Query Language, which is a standard interactive programming language used for many popular databases. Before you Start Before you can start to use your database, you will need to make a note of the following information. Database host IP address. The name of the database. The username you will connect with. The password for the user. Connecting to Your Database from the Command Line MySQL enables you to access your database through the command-line. This is useful if you want to check your database or perform setup tasks before you start using it. Note: With most web applications, such as blogging, forums and ecommerce, you don t need to use MySQL s command-line tools. If you have a Linux web hosting account, you can use SSH to connect to our Linux servers and start using the MySQL command-line tools straight away. If you have a Windows web hosting account, you can install MySQL on your own PC. MySQL is available to download for free from http://dev.mysql.com/downloads/. Page 1 of 5

Step 2 At the command line either on your own PC or through SSH log into your database s server. Quick tip: If you have installed MySQL on your Windows machine, you can open a command prompt window. To do this click on the Start menu, select Run, and type cmd. Then click the Ok button. Here is an example of what you need to type to connect to your MySQL database. Example: mysql -h 213.171.218.249 testdatabase -u testuser p Lets break this example down and explain it in a little more detail: mysql: Specifies to connect to a MySQL database. -h 213.171.218.249: This specifies the database server to connect to. This is the IP address of your database, in this example we use 213.171.218.249. testdatabase: The name of your database. -u testuser: The u flag specifies the username, in this example the username we want to connect with is testuser. -p: This will ensure you are prompted for a password with which to connect to the database. Note: If you are running Windows and have not installed MySQL, you will see an error message. Step 2 You can check that you have successfully connected to the database by asking for its version and the current date. At the mysql> prompt type SELECT VERSION(), CURRENT_DATE, NOW(); Page 2 of 5

Note: More support and advice on using the MySQL Command Line Utility is available from the MySQL website, at: http://dev.mysql.com/doc/refman/5.0/en/mysql.html. Installing phpmyadmin The phpmyadmin project is a web application that makes it easy to create and manage your MySQL database. You can download it free of charge and install it in your web space. You can find out how to install phpmyadmin by following the guide below, and you can read more about how to use the software in the project s documentation at: http://www.phpmyadmin.net/home_page/docs.php Step 1 Download the most recent stable version of phpmyadmin from: http://www.phpmyadmin.net/home_page/downloads.php phpmyadmin is available in several languages and archive formats. If you are using a Windows PC, choose english.zip. Step 2 Once you have downloaded the installation file, extract it using a suitable tool such as WinZip on Windows or the unzip command on Linux and MacOS X. Step 3 The installation files will be extracted to a folder named phpmyadmin-2.9.1-english, or similar. Rename this folder to phpmyadmin, then use FTP to upload the entire folder to your web space s htdocs directory. Page 3 of 5

Step 4 Using a text editor, create a new file and enter the following text: <?php $i=0; $i++; // your database server s IP address $cfg['servers'][$i]['host']='213.171.218.246'; // Authentication method config, http or cookie $cfg['servers'][$i]['auth_type']='config'; // your database username $cfg['servers'][$i]['user']='demousername'; // your database user s password $cfg['servers'][$i]['password']='trainingpassword';?> Save this file as config.inc.php and upload it into the phpmyadmin directory you have just created in step 3. Quick tip: By default Windows Notepad will save your files with a.txt extension. To save as a.php file, select All files from the file type dropdown list while saving. Step 6 Visit your phpmyadmin folder through your web browser, and you will see the welcome page and will be able to start configuring your database. For example, http://www.yourdomain.com/phpmyadmin. Connecting to your Database Using PHP Using third party applications Many third party applications such as forum, blogging and ecommerce software require a connection to a MySQL database. When you configure your software s connection to the database you will need your: database server s IP address database name database username and password. Page 4 of 5

Connecting from your own scripts To connect to the database from your own PHP scripts use the mysql_connect () function. To connect you will need to specify the IP address, name and user details of your database. For example if we were connecting to a database called demodatabase, on 213.171.218.246, with the username demousername and the password password, we would use the following script: <?php $dbhost = '213.171.218.246'; // your database server s IP address $dbuser = 'demousername'; // the database username $dbpass = 'password'; // the database password $conn = mysql_connect ($dbhost, $dbuser, $dbpass) or die ('error connecting to your database'); // opens a connection to the server or gives an error $dbname = 'demodatabase'; // the database name mysql_select_db($dbname); // connects to your database?> Where to get further help and assistance MySQL maintain a comprehensive support website, which should be able to answer any questions you may have. This is available at: http://dev.mysql.com/support/index.html If you need help with the setup and usage of PHPMyAdmin, you can take a look at the support pages on their website at: http://www.phpmyadmin.net/home_page/docs.php Page 5 of 5