How to access MySQL with PHP

69 views

Accessing MySQL with PHP

  1.  <?
  2. mysql_connect(’db.domain.com:33306′,’rasmus’,‘foobar’);
  3. mysql_connect(’localhost:/tmp/mysql.sock’);
  4. mysql_connect(’localhost’,’rasmus’,‘foobar’,
  5. true,MYSQL_CLIENT_SSL|MYSQL_CLIENT_COMPRESS);
  6. ?>



« PHP - For secure HTTP connection Creating a MySQL database »
Posted on Monday, March 9th, 2009 at 1:58 pm under Basic of MySQL | RSS 2.0 Feed

One Response to “How to access MySQL with PHP”

  1. Index - MySQL basic Says:

    [...] Access MySQL 2. Creating MySQL database 3. Creating MySQL table 4. Insert Query in MySQL 5. Selecting query in [...]


Post Comment

You must be logged in to post a comment.



ComputerEducationWorld.com All Rights Reserved © RSS | CBSE | Education Boards Of India | What is My IP?