Site Panel Help User Panel Help Panel Demo's Search Help

Categories

· Show all categories

New Customer FAQs
E-Mail
FTP - File Transfers
Domains
SSH and Telnet
Scripting Languages
Password Protection
MySQL
Stats
Power Tools

· FAQ Home

· EchoEcho+ Support

MySQL: How do I connect to mySQL with php?
If your username is "testuser" and your mySQL password is "test2test" you can connect to your databases like this:

$link = mysql_pconnect("localhost","testuser","test2test");

You can learn more about php's mySQL functions at:
http://php.net/manual/en/ref.mysql.php

You can read the official MySQL tutorial at:
http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html

MySQL FAQ's are avilable at:
http://www.faqts.com/knowledge_base/index.phtml/fid/52

Last update: 12.07.2009, 21:19
Author: EchoEcho Support

printer-friendly version Send to a friend
Show this as PDF file export as XML-File

Average rating: 4 from 5 (4 Votes )

Please rate this entry:
completely
useless

1

2

3

4

5
most
valuable
You cannot comment on this entry | Content Overview: MySQL
Copyright © EchoEchoPlus Hosting