Networking, Programming and Graphics Tutorials

How to connect to MySQL database [1/1]

Type: Code Networking, Programming and Graphics Tutorials
How to connect to MySQL database
Level: Beginner Networking, Programming and Graphics Tutorials 
How to connect to MySQL database
Date: 2007-Mar-12
How to connect to MySQL database
Visited: 2791 times
How to connect to MySQL database
Rating: How to connect to MySQL database
How to connect to MySQL database
Author: Ivory Morhuld

This tutorial will show you how to connect to MySQL database from PHP script.

mysql_connect (host, username, password)

Returns a MySQL link identifier on success, or FALSE on failure.


<?php
$host
="localhost";
$user="root";
$password="password";
$connect=mysql_connect($host$user$password);
?>
Rate this tutorial:                    
Networking, Programming and Graphics Tutorials - How to connect to MySQL database [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: how to mysql connect to database  php mysql "how to connect to remote database" from windows  psaerror(string "Unable to connect to database:  mysql connect unable to connect to server  Unable to connect to database: saved admin password is incorrect.  Unable to connect to database: saved admin password is incorrect.  Unable to connect to database: saved admin password is incorrect  "Unable to connect to database: saved admin password is incorrect"  Unable to connect to database: saved admin password is incorrect.  Unable to connect to database: saved admin password is incorrect